On Sun, Dec 02, 2001 at 08:00:21PM -0800, Tim Rowledge wrote:
I suspect the thing to do would be to have an instvar in each compiled method that can have nil or a wordarray of translated machine code. If it's nil, the interpreter runs the bytecodes and adds the method to a list for potential translation. If it's a wordarray, run it, assuming it is correct code. I wonder if there is a nice way to fold primitives into this?
Smalltalk/X uses a "code pointer". This contains the adress of some runtime genated code or a pointer to some code compiled with gcc (for Primitives or statically compiled methods with the smalltalk-to-c compiler).
Marcus