<br><br><div class="gmail_quote">On Sat, Dec 31, 2011 at 2:37 PM, Igor Stasenko <span dir="ltr"><<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>></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 <<a href="mailto:luc.fabresse@gmail.com">luc.fabresse@gmail.com</a>> wrote:<br>
><br>
> Hi All,<br>
><br>
> 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>
><br>
> Does someone know why?<br>
> Thanks,<br>
><br>
> #Luc<br>
><br>
><br>
><br>
> ---------- Forwarded message ----------<br>
> From: David T. Lewis <<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>><br>
> Date: 2011/12/30<br>
><br>
> Actually, I think I just spotted the problem. If I use an interpreter<br>
> VM to run the system tracer, then load the cloned image with an interpreter<br>
> VM, then save the cloned image, then run it under Cog, it works.<br>
><br>
> If I use Cog to do the system tracing, the cloned image does not work.<br>
><br>
> If I use the interpreter VM to trace the image, then run the cloned<br>
> image under Cog, it does not work.<br>
><br>
> If I run the same cloned image on an interpreter VM, it works.<br>
><br>
> After the cloned image has been saved from an interpreter VM, it<br>
> can be used with Cog.<br>
><br>
> I do not know the reason for this, but that is what I am seeing.<br>
><br>
> I am using Linux, but on a Mac you can probably use Ian's unix VM<br>
> for Mac from <a href="http://squeakvm.org/unix/" target="_blank">http://squeakvm.org/unix/</a> and see if you get the same<br>
> results.<br>
><br>
> Dave<br>
><br>
><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>