On 22 October 2012 04:39, Stefan Marr smalltalk@stefan-marr.de wrote:
Hi:
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):
Interpreter class>>initialize .... AtCacheTotalSize := AtCacheEntries * atCacheEntrySize * 2.
and FoxCallerContext initialized to: FoxCallerContext := FoxCallerSavedIP. in StackInterpreter
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.
Thanks Stefan
-- Stefan Marr Software Languages Lab Vrije Universiteit Brussel Pleinlaan 2 / B-1050 Brussels / Belgium http://soft.vub.ac.be/~smarr Phone: +32 2 629 2974 Fax: +32 2 629 3525