[avr-gcc-list] main function registers push/pop

2009-04-14 Thread Kang Tin LAI


My main function never return, I want to eliminate registers push/pop in 
main function.


I read the list archives, found:
OS_main - gcc 4.3.3 not implement
OS_task - gcc 4.3.3 OK but interrupt not guarantee disable
-mtiny-stack - not for what I wanted.


In old day, gcc 4.0.3 can identify main function, registers push/pop 
were not generated.


 Dmitry:
 It would be the best variant to restore old behavior
 and add '-m...' option for generation of standart prologue/epilogue
 with main().

I prefer -m... option, implemented?

--
--
Kang Tin Lai


___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list


Re: [avr-gcc-list] main function registers push/pop

2009-04-14 Thread David Kelly
On Wed, Apr 15, 2009 at 12:22:25AM +0800, Kang Tin LAI wrote:
 
 My main function never return, I want to eliminate registers push/pop in 
 main function.
 
 I read the list archives, found:
 OS_main - gcc 4.3.3 not implement
 OS_task - gcc 4.3.3 OK but interrupt not guarantee disable
 -mtiny-stack - not for what I wanted.

Isn't this part of what -ffreestanding does?

-- 
David Kelly N4HHE, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.


___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list