[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Where is the Startup Code source.
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] Where is the Startup Code source. |
Date: |
Thu, 2 Nov 2006 23:50:02 +0100 (MET) |
"Anatoly Sokolov" <address@hidden> wrote:
>> (For new AVRs, it's actually initialed three times: the hardware
>> itself initializes the SP to the top of internal RAM now.)
> You have full list of these devices? For them it is possible to
> remove initialization of stack pointer in the startup code.
No, I don't. I've only noticed it in a recent datasheet, it appears
to be a very recent change. (E. g. the ATmega1281 we are using still
start out with SP set to 0.)
I think the initialization would better remain in the startup code, as
it also allows people to customize their stack location easily.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)