This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
stack pointer adjustment problem
- To: gcc at gcc dot gnu dot org
- Subject: stack pointer adjustment problem
- From: Mark Probst <schani at mips dot complang dot tuwien dot ac dot at>
- Date: Mon, 26 Feb 2001 03:36:36 +0100
hi
plainly stated, my problem, as i see it, is this: i need a way to
modify the stack pointer without frame pointer elimination taking this
modification into account.
the reason i want to do such a thing is this: i've been working on
implementing proper tail calls. to this end i had to implement a new
calling convention in which the callee pops the arguments. on most
risc machines, like the alpha, space for outgoing arguments is
allocated in the prologue of the caller. now, if a function with the
new calling convention is called (without the call being a proper tail
call), the stack pointer is modified when the function returns. this
modification (the popping of the arguments by the callee) has to be
reverted.
thanks in advance.
bye
schani
--
Mark Probst
Student, Programmer, Juggler
http://www.complang.tuwien.ac.at/~schani/