This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Registers safe across function calls
- From: Dobes <bdobry at udel dot edu>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 17 Jun 2009 13:14:54 -0700 (PDT)
- Subject: Re: Registers safe across function calls
- References: <24081065.post@talk.nabble.com>
Please ignore this previous message... I found the error in my machine
dependent code.
Dobes wrote:
>
> I'd like to be able to specify registers that are safe across function
> calls (without the need to save/restore) and I cannot figure out how to do
> this. I know that I can set these particular registers to '0' in
> CALL_USED_REGISTERS and then remove the call/restore in the
> prologue/epilogue, but the stack space is still reserved for the
> save/restore. I would like to just rely on the fact that these registers
> are safe across function calls and not reserve any stack space for them.
> Thanks in advance.
>
--
View this message in context: http://www.nabble.com/Registers-safe-across-function-calls-tp24081065p24081201.html
Sent from the gcc - Dev mailing list archive at Nabble.com.