On Fri, Sep 14, 2001 at 04:42:21PM -0400, Dan Sugalski wrote:
> At 03:10 PM 9/14/2001 -0500, Brian Wheeler wrote:
> >I've been thinking alot about the bytecode file format lately. Its
> >going to get really gross really fast when we start adding other
> >(optional) sections to the code.
> >
> >So, with that in mind, here's what I propose:
> >
> >* All data sizes are in longwords (4 bytes) because that's just the way
> >things are :)
>
> Nope. At the very least, a bytecode file needs to start with:
>
> 8-byte word: endianness (magic value 0x123456789abcdef0)
Actually I think that if we use the magic word 0x01234567abcdef
(and 0x01234567 on 32-bit platforms) we can more easily do the
appropriate byte shuffling in the bytecode translator.
--
$jhi++; # http://www.iki.fi/jhi/
# There is this special biologist word we use for 'stable'.
# It is 'dead'. -- Jack Cohen