[Vm-dev] VM packaging for Cog transition
David T. Lewis
lewis at mail.msen.com
Wed Nov 10 04:50:30 UTC 2010
On Tue, Nov 09, 2010 at 10:50:31PM +0530, K. K. Subramaniam wrote:
> On Tuesday 09 Nov 2010 7:00:51 am David T. Lewis wrote:
> > Someone recently submitted a magic file with good names (Subbu? I can't
> > find the link).
> you mean
> http://lists.squeakfoundation.org/pipermail/vm-dev/2010-October/005619.html
>
> The archive doesn't seem to contain the attachment, so I am attaching it
> again.
>
> Subbu
> 0 leshort 6502 Squeak Image Classic
> 0 leshort 6504 Squeak Image Standard
> 0 leshort 6505 Squeak Image with Closure and Float reordering
Ah yes, that's it, thanks!
The image that you run on an Intel box might have been saved on an
older Mac with reversed byte ordering, and we may as well throw in
the theoretically possible 64-bit variations for completeness, so
the magic file entries could be extended like this:
0 lelong 6502 Squeak Image Classic
0 lelong 6504 Squeak Image Standard
0 lelong 6505 Squeak Image with Closure and Float reordering
0 belong 6502 Squeak Image Classic
0 belong 6504 Squeak Image Standard
0 belong 6505 Squeak Image with Closure and Float reordering
0 lelong 68000 Squeak Image 64-bit Classic
0 lelong 68002 Squeak Image 64-bit Standard
0 lelong 68003 Squeak Image 64-bit with Closure and Float reordering
4 belong 68000 Squeak Image 64-bit Classic
4 belong 68002 Squeak Image 64-bit Standard
4 belong 68003 Squeak Image 64-bit with Closure and Float reordering
This works with the original 64-bit image (saved on a Mac) as
well as a newer 64-bit image saved on Intel, so I think the rules
should be right.
Note, the format number is saved in the first 8 bytes (not 4) for
a 64-bit image. A recent Linux supports "lequad" and "bequad", but
this is not portable, hence the "belong" with 4-byte offsets in the
last three lines.
Dave
More information about the Vm-dev
mailing list