[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] Endless loop in AVR?
From: |
Rolf Magnus |
Subject: |
Re: [avr-chat] Endless loop in AVR? |
Date: |
Sat, 4 Aug 2007 13:44:11 +0200 |
User-agent: |
KMail/1.9.7 |
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [avr-chat] Endless loop in AVR?,
Rolf Magnus <=