3 ms·
Apologies on the first results, simvm.c had mistakenly not compiled, so those were the original loops. I had to modify the code to get it to compile (dropped i
by Groxx 16y ago
Apologies on the first results, simvm.c had mistakenly not compiled, so those were the original loops. I had to modify the code to get it to compile (dropped it to "#define LONG") and here are the results:
real 0m2.209s
user 0m2.191s
sys 0m0.006s
vs
real 0m0.020s
user 0m0.001s
sys 0m0.003s
assembly code for gcc -O3 -S simvm.c: https://gist.github.com/710249 https://gist.github.com/710249
Where's the printf(answer)? For comparison, here's the `gcc -S simvm.c` output: https://gist.github.com/710269 https://gist.github.com/710269