<br><br><div class="gmail_quote">On Fri, Sep 23, 2011 at 6:40 AM, Nick. <span dir="ltr">&lt;<a href="mailto:nick.lsts@gmail.com">nick.lsts@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi guys!<br>
<br>
In the past few days i tried to get InterpreterSimulator running without<br>
success.<br>
First of all, a little context about my goal: I&#39;m digging into the VM<br>
because i would like to be able to delegate to some class (that I&#39;ll<br>
develop) the responsibility for, say, the method lookup algorithm.<br>
<br>
With that in mind, here&#39;s what i&#39;ve been doing:<br>
Using the Pharo 1.2 image Mariano Peck&#39;s prepared in his exellent article<br>
(<a href="http://marianopeck.wordpress.com/2011/04/23/how-to-debug-the-vm/" target="_blank">http://marianopeck.wordpress.com/2011/04/23/how-to-debug-the-vm/</a>),  loaded<br>
the VMMaker package with the following script:<br>
<br>
    Deprecation raiseWarning: false.<br>
        Gofer new<br>
        squeaksource: &#39;MetacelloRepository&#39;;<br>
        package: &#39;ConfigurationOfCog&#39;;<br>
        load.<br>
    (Smalltalk at: #ConfigurationOfCog) project latestVersion load.<br>
<br>
Once it finishes (without errors) I &quot;Save As&quot; the current image as<br>
&quot;demo.image&quot;, close it and open the original Pharo 1.2 image that Mariano<br>
provided.<br>
When, for example, I run:<br>
<br>
    (CogVMSimulator new openOn: &#39;demo.image&#39;) test<br>
or<br>
    (InterpreterSimulatorLSB new openOn: &#39;demo.image&#39;) test<br>
<br>
I get the following error: &quot;Error: basicNew: failed&quot; (see attached images at<br>
the end).<br></blockquote><div><br>Weird.  Something I remember about the simulator is that you need to run it with a VM that has the BochsIA32Plugin. Try Eliot&#39;s VM that will have it for sure. But anywya, I doesn&#39;t look related to your particula problem.  <br>
<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
When I tried to load VMMaker in the Pharo 1.3 OneClick release, I got<br>
another error (see attached images at the end).<br>
<br></blockquote><div><br>Yes, because you need some changes in order to make it work. I have attached those changes in the post. But those changes should be already integrated in latests Pharo 1.3.<br>You don&#39;t have that error in the image I put of 1.2 because that image comes already with such changes. <br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Am I doing something wrong?<br>
Are those the right simulators to use? I can tell the difference between all<br>
that are available in VMMaker package.<br>
<br></blockquote><div><br>Well...it depends on what you want. FOr example, if you build a stack VM then you should use instead StackInterpreterSimulator. So..for the Cog VM I guess it is CogVMSimulator.<br><br>If you go to here: <a href="http://www.squeakvm.org/svn/squeak/branches/Cog/image/">http://www.squeakvm.org/svn/squeak/branches/Cog/image/</a><br>
you can see <a href="http://www.squeakvm.org/svn/squeak/branches/Cog/image/VM%20Simulation%20Workspace.text">http://www.squeakvm.org/svn/squeak/branches/Cog/image/VM%20Simulation%20Workspace.text</a><br>It might be outdated, but it can be a start point.<br>
<br>cheers<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks in advance!<br>
<br>
Nick<br>
<br>
<br>
<a href="http://forum.world.st/file/n3835723/error_while_trying_to_run_InterpreterSimulator.png" target="_blank">http://forum.world.st/file/n3835723/error_while_trying_to_run_InterpreterSimulator.png</a><br>
<a href="http://forum.world.st/file/n3835723/Error_while_loading_VMMaker_in_Pharo-1.3-OneClick.png" target="_blank">http://forum.world.st/file/n3835723/Error_while_loading_VMMaker_in_Pharo-1.3-OneClick.png</a><br>
<font color="#888888"><br>
<br>
<br>
--<br>
View this message in context: <a href="http://forum.world.st/Got-Error-basicNew-failed-when-running-InterpreterSimulator-tp3835723p3835723.html" target="_blank">http://forum.world.st/Got-Error-basicNew-failed-when-running-InterpreterSimulator-tp3835723p3835723.html</a><br>

Sent from the Smalltalk VM - Beginners mailing list archive at Nabble.com.<br>
_______________________________________________<br>
VM-beginners mailing list<br>
<a href="mailto:VM-beginners@lists.squeakfoundation.org">VM-beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>