inc
loop: inc %[i]; cmp %[max], %[i]; jb loop;
time ./inc_loop_asm.out 5000000000
New to topics? Read the docs here!