??? 05/25/12 22:31 Read: times |
#187531 - That is not helping the compiler Responding to: ???'s previous message |
You are actually performing different logic.
A while loop will always compare whereas a for(;;) probably does not have the compare. Either way, this is so negligible to be deemed useful. The if statements - one prioritizes and one does not. Priority based logic can be significantly faster. Pick your poison, use the memory or use the speed. Overall, when one writes code and tries to optimize based on speed or memory, one will usually change the end conditions that the logic performs. The hex file is different because the logic is different. |