How to forbid a function to use stack?

PRC panruochen@gmail.com
Tue Feb 19 08:58:00 GMT 2008


I haved declared all local variables in the function static. But gcc still generates ARCH-depended (MIPS) code at the beginning
of the function

----------------------------------------------
80006468:	27bdffe0 	addiu	sp,sp,-32
8000646c:	afbf001c 	sw	ra,28(sp)
80006470:	afbe0018 	sw	s8,24(sp)
...
----------------------------------------------

How to inform gcc not to do these for this function?


Best Regards
PRC
2008/2/19



More information about the Gcc-help mailing list