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) Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk