[squeak-dev] 64-bit images (was: The Trunk: SystemReporter-dtl.20.mcz)

David T. Lewis lewis at mail.msen.com
Fri Nov 9 00:39:04 UTC 2012

The purpose of this change to the SystemReporter is to allow it to
identify the image format and word size (64-bit or 32-bit) of the image
file that is currently being run. An example SystemReporter window from
a 64-bit image is attached.

A 64-bit version of the trunk image can be found here:

A 64-bit image is normally created directly from the normal 32-bit image
using a SystemTracer. This Smalltalk script illustrates how it is done:

To run a 64-bit image on Linux, go to http://squeakvm.org/unix/ and install
both the " Unix VM" and the " Unix VM for 64-bit images".
The /usr/local/bin/squeak script will then invoke the right VM to run
your image, either 32- or 64-bit.

If you prefer to compile your VM from source, use the source tarball
from http://squeakvm.org/unix/ and run the platforms/unix/cmake/configure
script with the "--image64" option to build a VM for running 64-bit
images. Unofficial and unsupported "bleeding edge" tarballs can also be
found at http://box3.squeak.org/job/InterpreterVM/

Cog VMs are not currently able to run the 64-bit image, although they
certainly will do so in the future. For now, a 64-bit image on a standard
interpreter VM will be much slower than the "same" 32-bit image on Cog,
but will have greater address space and an ability to reach a much larger
total image size.


On Thu, Nov 08, 2012 at 04:36:15AM +0000, commits at source.squeak.org wrote:
> David T. Lewis uploaded a new version of SystemReporter to project The Trunk:
> http://source.squeak.org/trunk/SystemReporter-dtl.20.mcz
> ==================== Summary ====================
> Name: SystemReporter-dtl.20
> Author: dtl
> Time: 7 November 2012, 11:35:58.387 pm
> UUID: fb07b2ef-d22a-4054-a266-1e94e274f3ef
> Ancestors: SystemReporter-cmm.19
> Display image format and word size in #reportImage:
> =============== Diff against SystemReporter-cmm.19 ===============
> Item was changed:
>   ----- Method: SystemReporter>>reportImage: (in category 'reporting') -----
>   reportImage: aStream
>   	self header: 'Image' on: aStream.
>   	aStream 
>   		nextPutAll: Smalltalk image imageName; cr;
>   		nextPutAll: SystemVersion current version; cr;
>   		nextPutAll: Smalltalk image lastUpdateString; cr;
> + 		nextPutAll: Smalltalk image currentChangeSetString; cr.
> + 	[ | imageFormat bitsPerWord |
> + 	imageFormat := Smalltalk image imageFormatVersion.
> + 	bitsPerWord := Smalltalk image wordSize * 8.
> + 	aStream nextPutAll: 'Image format ';
> + 			nextPutAll: imageFormat asString;
> + 			nextPutAll: ' (';
> + 			nextPutAll: bitsPerWord asString;
> + 			nextPutAll: ' bit)'; cr]
> + 		on: Warning
> + 		do: ["primitive not present in VM"].
> - 		nextPutAll: Smalltalk image currentChangeSetString; cr
>   !
-------------- next part --------------
A non-text attachment was scrubbed...
Name: System Reporter.png
Type: image/png
Size: 40574 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20121108/87629de2/SystemReporter-0001.png

More information about the Squeak-dev mailing list