[Mono-list] Tailcall
Neale.Ferguson@SoftwareAG-USA.com
Neale.Ferguson@SoftwareAG-USA.com
Fri, 30 Jul 2004 17:09:14 -0400
The S/390 ABI only specifies that Registers 6-14 are guaranteed on exit =
as they were on entry. It does provide a place on the stack for =
parameter registers to be place there but for performance reasons it's =
better not to. If there was a flag set for the method that the =
emit_prolog could check to see if a tailc was going to be made then I'd =
use that stack area in this instance only. The tail handling code could =
then load from there before jumping.
-----Original Message-----
Hi,
An alternative solution, which I use on sparc, is to copy the=20
arguments which are in the incoming registers to the
outgoing registers
/stack locations. See mini-sparc.c for more info.