[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] gcrt1.S should call main rather thanjumping
From: |
Joerg Wunsch |
Subject: |
Re: [avr-libc-dev] gcrt1.S should call main rather thanjumping |
Date: |
Tue, 13 Feb 2007 23:51:52 +0100 |
User-agent: |
Mutt/1.5.11 |
As Dean wrote:
> I was under the impression that the main overhead could be
> eliminated via the use of the naked and/or noreturn attributes. It
> seems to work in my own simple tests; is this not the case?
See Marek's discussion about __C_task (or OS_task). In short, it's a
noreturn function that is allowed to return something (which will be
passed on to exit()).
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)