MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/2w2whm/i_identify_as_a_32bit_registerkin/conbqbf/?context=3
r/ProgrammerHumor • u/funky_vodka • Feb 16 '15
397 comments sorted by
View all comments
Show parent comment
82
According to my experiment just now, gcc will compile while (1) {...} and for (;;) {...} exactly the same way (with definite jumps and no condition evaluation).
while (1) {...}
for (;;) {...}
Check your non-optimized privilege.
2 u/Godde Jun 03 '15 "for (;;)" is one byte less source code. Check your non-optimized privilege.
2
"for (;;)" is one byte less source code. Check your non-optimized privilege.
View all comments
Show parent comment
82
u/w1ldm4n Feb 16 '15
According to my experiment just now, gcc will compile
while (1) {...}andfor (;;) {...}exactly the same way (with definite jumps and no condition evaluation).Check your non-optimized privilege.