[Vm-dev] Determining which VM to run from a shell script (was: VM Maker: ImageFormat-dtl.7.mcz)

David T. Lewis lewis at mail.msen.com
Fri Dec 31 23:44:34 UTC 2010

Attached are a shell script to illustrated use of ckformat as well as
a copy of the C source generated from ImageFormat.

Happy New Year!


On Sat, Jan 01, 2011 at 12:40:21AM +0000, squeak-dev-noreply at lists.squeakfoundation.org wrote:
> Dave Lewis uploaded a new version of ImageFormat to project VM Maker:
> http://www.squeaksource.com/VMMaker/ImageFormat-dtl.7.mcz
> ==================== Summary ====================
> Name: ImageFormat-dtl.7
> Author: dtl
> Time: 31 December 2010, 6:40:20 am
> UUID: a8499caf-2b80-4c5c-82e7-e2b10455f42a
> Ancestors: ImageFormat-dtl.6
> Generate ckformat.c, a utility program for reading the image file format number from an image file. The ckformat program is intended for testing image file format from a unix shell script such that the shell script can select a VM based on image requirements. A non-zero return status code from ckformat indicates failure, otherwise the format number is written to standard output with no line terminator. The utility handles big-endian and little-endian versions of all known 32 and 64 bit image formats.
> The ckformat C code is generated from ImageFormat to ensure that it is updated as new format numbers are assigned and documented in class ImageFormat.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ckformat.sh
Type: application/x-sh
Size: 1262 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20101231/5b5c34c7/ckformat-0001.sh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ckformat.c
Type: text/x-csrc
Size: 4124 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20101231/5b5c34c7/ckformat-0001.c

More information about the Vm-dev mailing list