Simulator

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Simulator

Chris Cunnington
I'm trying Craig's ( http://wiki.squeak.org/squeak/2465 ) instructions for starting the simulator. In principle it seems pretty straight ahead. Make two images and then start one from within the other. I "SaveAs..." to make two images (source.image and stimulator.image), execute:

(InterpreterSimulatorLSB new openOn: 'source.image') test

And then I get an "Incompatible Image Format" error. Any suggestions on how to resolve that would be great. This does seem to be how vms are hacked. I have a feeling it's not the only way, but it must be the coolest.

Chris


openOn: fileName extraMemory: extraBytes
  
... snip ...

    (self readableFormat: version)
        ifTrue: [swapBytes := false]
        ifFalse: [(version := self byteSwapped: version) = self imageFormatVersion
                    ifTrue: [swapBytes := true]
                    ifFalse: [self error: 'incompatible image format']].
_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
Reply | Threaded
Open this post in threaded view
|

Re: Simulator

Mariano Martinez Peck
Chris, maybe too late, but could you solve it?  If true, please let us know how.

On Mon, Jan 17, 2011 at 10:05 PM, Chris Cunnington <[hidden email]> wrote:
I'm trying Craig's ( http://wiki.squeak.org/squeak/2465 ) instructions for starting the simulator. In principle it seems pretty straight ahead. Make two images and then start one from within the other. I "SaveAs..." to make two images (source.image and stimulator.image), execute:

(InterpreterSimulatorLSB new openOn: 'source.image') test

And then I get an "Incompatible Image Format" error. Any suggestions on how to resolve that would be great. This does seem to be how vms are hacked. I have a feeling it's not the only way, but it must be the coolest.

Chris


openOn: fileName extraMemory: extraBytes
  
... snip ...

    (self readableFormat: version)
        ifTrue: [swapBytes := false]
        ifFalse: [(version := self byteSwapped: version) = self imageFormatVersion
                    ifTrue: [swapBytes := true]
                    ifFalse: [self error: 'incompatible image format']].

_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners



_______________________________________________
VM-beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners