[Vm-dev] oops to zero

Keith Hodges keith_hodges at yahoo.co.uk
Sat Sep 29 19:56:19 UTC 2007

I am attempting to zero all ooP pointers before writng an image to disk.

I have added the following code to Interpreter-#writeImage:

writeImageFile: imageBytes

    self adjustAllOopsBy: (0 - memory). 
    self writeImageFileIO: imageBytes.
    self adjustAllOopsBy: memory.

I managed to build a unix version of the vm with this change but it did 
not work as hoped.
Starting an image saved with this vm crashes giving a bus error.

any ideas?

I am also unable to find any documentation on generating the .app 
version of the unix vm for Mac OS X.

thanks in advance



To build this into squeak:

Loaded 3.9.8-12 stuff from http://www.squeakvm.org/unix/release/

I have the current trunk obtained by:

svn co http://squeakvm.org/svn/squeak/trunk squeak

I have


I am on Mac OS X, using John 's OS X VM 3.8.18beta1U

The above config file is not visible by the VMaker Tool 'load' button, 
when I save my own config, that one is.

Clicking the platform button:

calls Smalltalk osVersion rather than SmalltalkImage current.

More information about the Vm-dev mailing list