3 ms·
> You can see that thats exactly what it does here: https://godbolt.org/g/NWa5yZ https://godbolt.org/g/NWa5yZ You are wrong as well, that is what it is doing i
by Klockan 10y ago
> You can see that thats exactly what it does here: https://godbolt.org/g/NWa5yZ https://godbolt.org/g/NWa5yZ
You are wrong as well, that is what it is doing if you compile it with -O2 on that exact compiler. Try compiling with -O0 instead and it will include those instructions. Also the number is reasonable, modern cpu cores can execute around a billion loop iterations per second.
- saagarjha 10y agoThe page mentions that all C programs were compiled with gcc -O2.