How to forbid a function to use stack?
Andrew Haley
aph@redhat.com
Tue Feb 19 09:32:00 GMT 2008
PRC wrote:
> 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?
gcc always uses the stack.
Andrew.
More information about the Gcc-help
mailing list