[Top][All Lists]

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

Re: [avr-gcc-list] Re: [patch #6004] "main-as-normal" patches for GCC

From: Bob Paddock
Subject: Re: [avr-gcc-list] Re: [patch #6004] "main-as-normal" patches for GCC
Date: Thu, 26 Feb 2009 08:49:53 -0500

> The OS_main and OS_task attributes are mainly used for RTOSes, for the
> main() function and task functions respectively. However, OS_main can be
> useful in an application's main() function that does not have an RTOS,
> as it will reduce the code size slightly.

Is there any workable combination of OS_main and the noreturn attribute,
that would prevent the compiler from inserting the _exit function?

In the ideal case six bytes would be saved.

My main() never returns, yet when I apply noreturn I'm told that
main() is returning a value.

reply via email to

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