[Vm-dev] Simulator Question
David T. Lewis
lewis at mail.msen.com
Tue Dec 7 13:14:53 UTC 2010
On Tue, Dec 07, 2010 at 01:16:57PM +0100, Gabriel Hern?n Barbuto wrote:
>
> Hi
>
> I've been trying to run the simulator. I've been able to run the
> StackInterpreterSimulator. But I need to run the pre-Cog VM simulator.
> Does anyone know if it's working? Can anyone point me to anything that
> explains how to run it?
>
> Thanks in advance.
>
> Gabriel
The only documentation that I can remember seeing is the class comment
of InterpreterSimulator, which says:
This class defines basic memory access and primitive simulation so that
the Interpreter can run simulated in the Squeak environment. It also
defines a number of handy object viewing methods to facilitate pawing
around in the object memory.
To see the thing actually run, you could (after backing up this image
and changes), execute
(InterpreterSimulator new openOn: Smalltalk imageName) test
and be patient both to wait for things to happen, and to accept various
things that may go wrong depending on how large or unusual your image
may be. We usually do this with a small and simple benchmark image.
You will probably have more luck using InterpreteSimulatorLSB or
InterpreterSimulatorMSB as befits your machine.
I'm no expert here, but stepping through the above in a debugger is
enough to get you started.
Dave
More information about the Vm-dev
mailing list