This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]