At 11:12 AM 10/5/2001 -0400, Bryan C. Warnock wrote:
>Is it safe to say that all the data (the values themsevles - the opcodes and
>opcode arguments (registers, constants, constant table lookups, jump
>offsets, etc)) within the bytecode are exactly and invariably 32 bit, but
>the size of the type that they're stored in may be whatever is comfortable
>to the platform?
Yes, exactly.
>That makes 64->32->64 conversions trivial (even accounting for byte order),
>since 64 bit is simply a sign extension word and the 32 bit value.
Exactly.
>Hmm, but we do have a mix of signed and unsigned words, which could have an
>effect if the MSB is set.
I can't think of anything that should be reasonably unsigned that won't fit
in a 31 bit value. (No need for sign bits for constant table offsets, but 2
billion constant table entries should be sufficient...)
>The header portion may need some work....
Could be, yep. :)
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk