Originally Posted by
laserlight
I repeat oogabooga's challenge: name such a compiler. A few years ago, I picked up an old book on C optimisation that recommended using such a for loop over a while (1) because compilers, old when the book was written, tended to optimise the former to that structure whereas they might actually create a loop that tested the loop condition for the latter. There was certainly no caveat that a compiler might choke on this.
My guess is that if a compiler that does not recognise such a for loop exists today, it would be very specialised for say, embedded programming, hence rendering the notion of a cross-platform approach irrelevant to begin with.