[Vm-dev] VM Maker: VMMaker.oscog-eem.2347.mcz

Clément Bera bera.clement at gmail.com
Sat Mar 10 19:00:36 UTC 2018


On Sat, Mar 10, 2018 at 7:24 PM, tim Rowledge <tim at rowledge.org> wrote:

>
>
>
> > On 10-03-2018, at 4:27 AM, Clément Bera <bera.clement at gmail.com> wrote:
> >
> > Another thing you can do is to simulate the simulator itself, so you can
> look at the code, the execution from the outside and from the inside at the
> same time. See picture below
> >
> > | cos |
> > cos := StackInterpreterSimulator newWithOptions: #(ObjectMemory
> Spur32BitMemoryManager).
> > cos desiredNumStackPages: 8.
> > cos openOn: 'SpurVMMaker.image'.
> > cos systemAttributes
> >               at: 2 put: '-doit';
> >               at: 3 put:      '| cos |
> > cos := StackInterpreterSimulator newWithOptions: #(ObjectMemory
> Spur32BitMemoryManager).
> > cos desiredNumStackPages: 8.
> > cos openOn: ''SpurVMMaker.image''.
> > cos openAsMorph; run'.
> >
> > cos openAsMorph; run
>
> That is rather more than a little bit cool. Even more fun - make one of
> the simulators be using the ARM cpu sim so you can simulate the simulation
> of simulating a different cpu whilst debugging the debugger debugger
> simulation. Or something like that; easy to get lost in the mirrors.
>
>
I tried, but primitiveNewCPU cannot be simulated, hence you can simulate
only a StackVMSimulator ;-).

It takes a few hours to open inside the simulator window though.



> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Strange OpCodes: PBT: Prune Binary Tree
>
>
>


-- 
Clément Béra
Pharo consortium engineer
https://clementbera.github.io/
https://clementbera.wordpress.com/
Bâtiment B 40, avenue Halley 59650 Villeneuve d'Ascq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20180310/6f0aab1a/attachment.html>


More information about the Vm-dev mailing list