On Sep 29, 2007, at 21:56 , Keith Hodges wrote:
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?
The base address is stored in the image, so before calling writeImageFileIO you would have to set memory to zero I guess.
- Bert -