lightning
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lightning] Re: `pushr' on SPARC


From: Ludovic Courtès
Subject: [Lightning] Re: `pushr' on SPARC
Date: Wed, 08 Nov 2006 09:02:05 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Hi,

Paolo Bonzini <address@hidden> writes:

> Actually, it seems to me that my "unsafe" push/pop works if the push and pop
> have no call in the middle.  Can you confirm this?

Yes, your push/pop (the one that just increments %sp) should work if
there are no function calls in the middle (and consequently no register
window underflow/overflow).

However, I believe one typically uses `push' to save registers before
calling a function (at least that's the only use case in my code IIRC).

Thus, I'd still be in favor of either a 16-octet push area (buggy, as
you mentioned in a previous post) or, rather, a patched save (assuming
`allocai' is not used when `pushr' is).

Thanks,
Ludovic.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]