V
Virchanza
When I'm writing an eternal loop in C, I always do:
for (; { /* code */ }
I've been using the PIC C compiler recently for PIC microcontrollers,
and I've found out that it completely removes all loops from the
program that begin with "for (;". I've had to change these eternal
loops to:
while (1) { /* code */ }
Anyone else seen any other forms of bad optimisation with
microcontroller compilers?
for (; { /* code */ }
I've been using the PIC C compiler recently for PIC microcontrollers,
and I've found out that it completely removes all loops from the
program that begin with "for (;". I've had to change these eternal
loops to:
while (1) { /* code */ }
Anyone else seen any other forms of bad optimisation with
microcontroller compilers?