??? 05/27/12 05:46 Read: times |
#187548 - Hmmm... Responding to: ???'s previous message |
Justin Fontes said:
The while(1) is known to always compare Is it?! The last time I checked, both for(;;) and while(1) gave identical results in Keil C51. Keil C51 does evaluate constant expressions at compile-time and can, therefore, remove tests that will always have the same result. It probably depends on the optimisation level as to whether it actually does this or not... |