[squeak-dev] cannot read file format 6521

David T. Lewis lewis at mail.msen.com
Thu Mar 26 19:24:47 UTC 2020

On Thu, Mar 26, 2020 at 07:02:28PM +0530, K K Subbu wrote:
> On 26/03/20 5:58 PM, stes wrote:
> >
> >Hi,
> >
> >Is there an easy way to see in the squeak image file name what the "image
> >format" number is ?
> Yes. Use ckformat command. See http://wiki.squeak.org/squeak/6582
> $ ckformat foo.image
> 6521

>From Squeak, you can also check the format an image file on disk:
	ImageFormat fromFile: 'mySqueakImage.image'

Just load package ImageFormat from the SqueakMap Package Browser.

Also look at methods in 'utility' on the class side of ImageFormat. For example, you can do this:

	ImageFormat versionDescriptions do: [:e | Transcript cr; show: e]

The cformat.c program is generated from ImageFormat like this:

	ImageFormat createCkFormatProgram

And a copy of the generated source code is at http://squeakvm.org/cgi-bin/viewvc.cgi/squeak/trunk/src/ckformat.c?revision=3774&view=markup


More information about the Squeak-dev mailing list