This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
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:06:30 -0700 (PDT)
- Subject: Registers safe across function calls
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-tp24081065p24081065.html
Sent from the gcc - Dev mailing list archive at Nabble.com.