Well, in that case all jump opcodes could be changed to that approach as well. It'd be necessary to insert some assembler in each opcode function. Is it possible to get the stack restored correctly?
/ Martin Stjernholm, Roxen IS
Previous text:
2003-08-08 00:01: Subject: Machine code efficiency
Another option would be to put the responsibility of popping the frame on the caller. But that would probably screw things up...
Hmm, I haven't looked at the source in a while, but just where does an F_RETURN jump to? Shouldn't F_RETURN just do a return? Ie, shouldn't F_RETURN be compiled as:
jmp F_RETURN
instead of
jsr F_RETURN jmp *%eax
?
/ Fredrik (Naranek) Hubinette (Real Build Master)