On Tue, Nov 11, 2003 at 10:53:58AM -0500, Dan Sugalski wrote:
> 
> On Tue, 11 Nov 2003, Thies C. Arntzen wrote:
> 
> >     still working onm this php-compiler;-)
> >     thanx for all the replies on my last issue..
> >
> >     next question: calling conventions.
> >     in the calling_convertion.pod you say that the callee should
> >     do a saveall, restoreall. shouldn't imcc be smart about those
> >     things and save all registers that are used in a function?
> 
> If you take a look at the generated bytecode (try a "make disassemble" to
> get the pbc disassembler) you'll see that it does do savetops where
> needed. Registers 0-15 are mor or less scratch, though we should make that
> clearer. (FWIW, saving all the registers of a particular type is faster
> than saving three or more individual registers individually)

    i need to to far more work to actually get into this
    discussion in depth.

    once we have function calls in our php thingie working i'm
    sure i'll get back to you with some better questions.

    re,
    tc

Reply via email to