On Samstag, 28. Juli 2007, Bob Paddock wrote:
> Place a NOP inside the while(1){}. Sometimes the compiler is 'helpful'
> and optimizes away that it thinks you don't need.
The compiler will never optimize away an endless loop, because that would
alter the program's behavior and violate the C standard. You are probably
thinking about delay loops, which can indeed be optimized away.
_______________________________________________
AVR-chat mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-chat