[Vm-beginners] Simulator
Mariano Martinez Peck
marianopeck at gmail.com
Mon Jan 24 22:26:53 UTC 2011
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 <
smalltalktelevision at gmail.com> 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
> VM-beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-beginners/attachments/20110124/8fdd7f31/attachment.htm
More information about the VM-beginners
mailing list