[Vm-dev] magic decode for image files

K K Subbu kksubbu.ml at gmail.com
Mon Apr 10 12:22:49 UTC 2017


Hi,

I have attached a pattern match file that can be used by the file(1) 
command to decode Squeak/Cog/Spur image files.

$ file -m magic Pharo-50770.image Pharo-40627.image
Pharo-50770.image: Spur image 32b little-endian
Pharo-40627.image: Cog image 32b little-endian,closure,nativefloat

$ file -m magic Squeak3.8.1-6747full.image Squeak64-3.8g-6548.image
Squeak3.8.1-6747full.image: Squeak image 32b little-endian
Squeak64-3.8g-6548.image: Spur image 64b big-endian

The file may be appended to /etc/magic (system-wide) or $HOME/.magic 
(for one user). It will help package maintainers pick the right vm for 
an Image.

Ideally, this file should be generated by VMMaker under 
platforms/Cross/.., so patterns can be kept in sync with ImageFormat.

I am rejoining this list after a break that took a lot longer than I 
expected :-(. Glad to be back, though it looks like I have a lot of 
catchup to do.

Regards .. Subbu
-------------- next part --------------
0	lelong		6502		Squeak image 32b little-endian
0	belong		6502		Squeak image 32b big-endian
0	lelong		6504		Stack image 32b little-endian,closure
0	belong		6504		Stack image 32b big-endian,closure
0	lelong		6505		Cog image 32b little-endian,closure,nativefloat
0	belong		6505		Cog image 32b big-endian,closure,nativefloat
0	lelong		6521		Spur image 32b little-endian
0	belong		6521		Spur image 32b big-endian
0	lequad		68000		Spur image 64b little-endian
0	bequad		68000		Spur image 64b big-endian
0	lequad		68002		Spur image 64b little-endian,closure
0	bequad		68002		Spur image 64b big-endian,closure
0	lequad		68003		Spur image 64b little-endian,closure,nativefloat
0	bequad		68003		Spur image 64b big-endian,closure,nativefloat
0	lequad		68019		Spur image 64b little-endian
0	bequad		68019		Spur image 64b big-endian


More information about the Vm-dev mailing list