[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lightning] Re: Calling convention
From: |
Sandro Magi |
Subject: |
Re: [Lightning] Re: Calling convention |
Date: |
Tue, 2 Oct 2007 11:15:59 -0400 |
On 10/2/07, Paolo Bonzini <address@hidden> wrote:
>
> > Hmm, I was looking into allocating registers using register numbers in
> > the range of JIT_R_NUM and JIT_V_NUM, which are mandatory for every
> > platform according to the manual, and they expose all machine
> > registers do they not? Combining this with a program in CPS form with
> > unconditional jumps for each function call seems fairly
> > platform-agnostic.
>
> Yes, you can do that. (They don't expose necessarily *all* machine
> registers, only most of them. For example, SPARC needs to reserve one
> or two for big immediates, and one for the frame pointer).
Right, I meant to say all general purpose registers, which I don't
think include the ones you mentioned. Is the x86 stack register
included in the above list?
Thanks for your help everyone! I think I have a solid handle on this now. :-)
Sandro
Re: [Lightning] Calling convention, Paolo Bonzini, 2007/10/02