avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-chat] Re: [avr-gcc-list] Bad code generated when using volatile key


From: Rick Mann
Subject: [avr-chat] Re: [avr-gcc-list] Bad code generated when using volatile keyword/-O0 opt?
Date: Sun, 12 Feb 2006 09:59:08 -0800


On Feb 12, 2006, at 9:20 AM, Ned Konz wrote:

Why does it seem like a bug?

It seems like a bug because that code wouldn't execute properly. I'd step through it in gdb (in assembly), and watch as it decremented a register, then a few instructions later reloaded the register with the previous value. Now that I'm no longer in '103 compatibility mode (thanks again for that tip), it doesn't seem to happen.

Is this your entire program, or might there be an interrupt handler that's trashing one or another registers or memory locations?

Even with empty ISRs it happened.

--
Rick


Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]