Possible Duplicate:
C/C++: is GOTO faster than WHILE and FOR?
I know this has been asked for many times, but I never got an answer which satisfies me by googling.
I read somewhere that every loop(for/while/do-while/untill) will be eventually be converted to goto statements internally, Is that True?
If not, Which is the best loop to use as per the performance wise? Let me know if anybody knows?
They say “converted to goto statements internally” as meaning machine/assembly does not have a notion of loops, just
compare/jump to labelinstructions which would equate toif/goto.Any loop construct you write will be reduced to this.