avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] Stack pointer loaded on main entry?


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] Stack pointer loaded on main entry?
Date: Fri, 7 Mar 2003 13:21:01 +0100
User-agent: Mutt/1.2.5i

As Harald Kipp wrote:

> Oops, I overlooked that one. From the avr-libc documentation,
> chapter "Memory Sections":
> 
> .init2:
>      In C programs, weakly bound to initialize the stack.
> 
> And indeed, gcrt1.S initializes the stack in .init2. But this is

Hmm, in that case, i think main() has no business to initialize the
stack anymore.  It should probably be treated as a normal function
then by default, with the option Marek recently mentioned that it
could be made to not create a stack frame of its own if declared using
__C_task (or whatever it was called).

-- 
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/




reply via email to

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