|
From: | David Gay |
Subject: | Re: [avr-gcc-list] Gcc bug?? |
Date: | Wed, 03 Mar 2004 08:33:50 -0800 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030927 |
<x-flowed> Brian Cuthie wrote:
What I then determined is that the "0" register (r1) contained the value 8! This, not coincidentally (and looking at the disassembled code) is exactly the value that's being incorrectly written into the static state variable. Interestingly, turning on any level of optimization seems to fix it, at least as observed by the TWI port handler not hanging. I was wondering if anyone else has seen anything like this, or has any advice or suggestions.
Something to consider: the registers are memory mapped, so stray pointer writes (in this case, to address 1), can overwrite them...
David Gay address@hidden _______________________________________________ avr-gcc-list mailing list address@hidden http://www.avr1.org/mailman/listinfo/avr-gcc-list </x-flowed>
[Prev in Thread] | Current Thread | [Next in Thread] |