[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] compiler function prologue/epilogue incorrect?
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] compiler function prologue/epilogue incorrect? |
Date: |
Tue, 26 Sep 2006 22:43:14 +0200 (MET DST) |
Paulo Marques <address@hidden> wrote:
> The "one more instruction" thing probably has to do with the two
> level pipeline of this CPU, ...
Another theory would be this has been added intentionally, in order to
allow the SLEEP instruction to be guaranteed to be executed right
after an SEI.
As the effect of the SEI is just setting a bit in SREG, any other way
to set the bit in SREG (like manipulating it through the MMIO
interface, or by assigning another value) has the same effect.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)