If memory serves me right, Leopold Toetsch wrote:
> I'm - as stated in the thread - for a new register type (L, long).

I'm thinking of virtual registers here... ie 

if sizeof(INTVAL) == 4
        'L' is a PMC
else if sizeof(INTVAL) == 8
        'L' is an INTVAL

So 64 bit opcodes are compiled in differently for each platform ?
ie add a set of virtual 'L' registers which turn into 32 new PMC regs
in 32 bit and 32 new INTVALs in 64 bit systems ?

To take away the choice deep down into the JIT compile time ?
(actually "when the JIT is compiled" time :-)

Since due to an accident , we have conv_i8 as an opcode and not as an
explicit PMC call , we should be able to #ifdef it's internals to match
the hardware ?. This should hard-code it after compilation with none of
the runtime overhead.

After all we saw lots of C compilers do something similar for floats :-)

Gopal
-- 
The difference between insanity and genius is measured by success

Reply via email to