<br><br><div class="gmail_quote">On Sat, Dec 31, 2011 at 2:37 PM, Igor Stasenko <span dir="ltr">&lt;<a href="mailto:siguctua@gmail.com">siguctua@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">
<br>
system tracer writes an image 6404 version<br>
while cog uses 6405<br>
i dont remember what is the difference between them, can someone remind me?<br></blockquote><div><br></div><div>You mean 6504 (6502 + 2) and 6505 (6504+1).</div><div><br></div><div>6502 = the Squeak V3 format with blue-book BlockContext (but _without_ BlockClosure support).</div>
<div>6504 = the Squeak V3 format with blue-book BlockContext /and/ BlockClosure support.</div><div>6505 = the Squeak V3 format with BlockClosure support (but _without_ BlockContext support).</div><div><br></div><div>One simple approach is to have the SystemTracer write out an image with the format of the VM.</div>
<div>This is Smalltalk vmParameterAt: 41</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
On 31 December 2011 10:49, Luc Fabresse &lt;<a href="mailto:luc.fabresse@gmail.com">luc.fabresse@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi All,<br>
&gt;<br>
&gt;  I am forwarding a message from David (Thanks a lot to him) who pointed that SystemTracer2 should be run  with a non-cog VM otherwize, the generated image is not usable.<br>
&gt;<br>
&gt;  Does someone know why?<br>
&gt;  Thanks,<br>
&gt;<br>
&gt; #Luc<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ---------- Forwarded message ----------<br>
&gt; From: David T. Lewis &lt;<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>&gt;<br>
&gt; Date: 2011/12/30<br>
&gt;<br>
&gt; Actually, I think I just spotted the problem. If I use an interpreter<br>
&gt; VM to run the system tracer, then load the cloned image with an interpreter<br>
&gt; VM, then save the cloned image, then run it under Cog, it works.<br>
&gt;<br>
&gt; If I use Cog to do the system tracing, the cloned image does not work.<br>
&gt;<br>
&gt; If I use the interpreter VM to trace the image, then run the cloned<br>
&gt; image under Cog, it does not work.<br>
&gt;<br>
&gt; If I run the same cloned image on an interpreter VM, it works.<br>
&gt;<br>
&gt; After the cloned image has been saved from an interpreter VM, it<br>
&gt; can be used with Cog.<br>
&gt;<br>
&gt; I do not know the reason for this, but that is what I am seeing.<br>
&gt;<br>
&gt; I am using Linux, but on a Mac you can probably use Ian&#39;s unix VM<br>
&gt; for Mac from <a href="http://squeakvm.org/unix/" target="_blank">http://squeakvm.org/unix/</a> and see if you get the same<br>
&gt; results.<br>
&gt;<br>
&gt; Dave<br>
&gt;<br>
&gt;<br>
<font color="#888888"><br>
<br>
<br>
--<br>
Best regards,<br>
Igor Stasenko.<br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div><br>