> 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. _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list