[Vm-dev] Simulators need some care
siguctua at gmail.com
Mon Oct 22 03:50:48 UTC 2012
On 22 October 2012 04:39, Stefan Marr <smalltalk at stefan-marr.de> wrote:
> I was trying to use the StackInterpreterSimulator as well the InterpreterSimulator inside the image that is in the Cog svn branch. (with VMMaker.oscog-lw.207)
> I ran into issues with undefined globals/class vars.
> I attached a changeset with some of the trivial things I already fixed.
> However, I ran also into the issue that in StackInterpreter>>#moveFramesIn:through:toPage: FoxCallerContext is not defined, and I have no idea how to replace it.
> I also had to ignore failing assertions to get that far, and there are plenty of those.
> The InterpreterSimulator fails because AtCacheTotalSize is not defined.
according to my sources (VMMaker-oscog-EstebanLorenzano.164):
AtCacheTotalSize := AtCacheEntries * atCacheEntrySize * 2.
and FoxCallerContext initialized to:
FoxCallerContext := FoxCallerSavedIP.
but .oscog branch i ahead of VMMaker.oscog-eem.154 by ~30 commits..
(the last one we merged with -oscog one in April.)
So,can't help with it more than pointing that you should look for
changes after eem.154.
> Do you have advice in which context the related changes were made and what the correct fixes would be?
> I also wonder with all these changes to StackInterpreter to fix the undefined globals, whether the thing is actually still functional.
> Stefan Marr
> Software Languages Lab
> Vrije Universiteit Brussel
> Pleinlaan 2 / B-1050 Brussels / Belgium
> Phone: +32 2 629 2974
> Fax: +32 2 629 3525
More information about the Vm-dev