Interval translator (was: Re: Sharp Zaurus SL-5000D Linux (Squeak?) PDA)

Marcus Denker marcus at ira.uka.de
Thu Dec 6 16:16:46 UTC 2001


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 
  





More information about the Squeak-dev mailing list