No. That is not true. I am using MinGW and for (;;), while (true) and x: goto x; resolved to the exact same statements
Originally posted by Hunter2
Hmm, interesting. One person finds that the assembly is the same and another finds that the for takes fewer operations. Well, in that case I imagine that with full optimizations they should compile to roughly the same thing, and if not, the difference should be marginal. My summary:
for(;; ) takes less time to type, and is potentially faster (very very slightly). while(true) is easier to read but is potentially slower (very very slightly).