<br><br><div class="gmail_quote">On Mon, Feb 7, 2011 at 6:52 AM, Francois Stephany <span dir="ltr">&lt;<a href="mailto:tulipe.moutarde@gmail.com">tulipe.moutarde@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;">
So StackToRegisterMappingCogit should be faster than the other ? If so, why does the SimpleStackBasedCogit still exist ?<br></blockquote><div><br></div><div>Juts in case people find bugs with the StackToRegisterMappingCogit that are not in SimpleStackBasedCogit.  SimpleStackBasedCogit is &quot;mature&quot;; we&#39;ve used it for almost two years at Teleplace, and while I&#39;ve fixed serious bugs in it in the past month it is quite possibly less buggy than StackToRegisterMappingCogit.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
(Sorry but I&#39;m a total newbie)</blockquote><div><br></div><div>One can only learn by asking questions.  Not knowing, one is not in a position to know whether a question is stupid or not, so one must not be afraid of asking stupid questions if one wants to learn.  Please continue.</div>
<div><br></div><div>best,</div><div>Eliot</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5"><br>
<br>
<br>
On 07/02/11 15:42, Igor Stasenko wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 7 February 2011 12:28, Krishsmalltalk<br>
&lt;<a href="mailto:krishnamachari.sudhakar@gmail.com" target="_blank">krishnamachari.sudhakar@gmail.com</a>&gt;  wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
StackToRegisterMappingCogit maps values to machine registers when generating<br>
code,<br>
while stack-based one uses stack for everything.<br>
<br>
Guess that is what is meant..<br>
Register based vms like Parrot will offer more info... As to motivation for<br>
this mapping<br>
<br>
</blockquote>
<br>
a motivation is simple: speed.<br>
Access to CPU registers usually 2-5 orders of magnitude faster than<br>
memory access.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Feb 7, 2011, at 2:53 PM, Igor Stasenko&lt;<a href="mailto:siguctua@gmail.com" target="_blank">siguctua@gmail.com</a>&gt;  wrote:<br>
<br>
On 7 February 2011 09:12, Francois Stephany&lt;<a href="mailto:tulipe.moutarde@gmail.com" target="_blank">tulipe.moutarde@gmail.com</a>&gt;<br>
wrote:<br>
<br>
Hi Eliot,<br>
<br>
Probably a stupid question but what&#39;s the difference between<br>
<br>
SimpleStackBasedCogit and c?<br>
<br>
SimpleStackBasedCogit maps values to machine registers when generating code,<br>
while stack-based one uses stack for everything.<br>
<br>
     new Cog VMs are available, SimpleStackBasedCogit @<br>
<br>
<a href="http://www.mirandabanda.org/files/Cog/VM/VM.r2359/" target="_blank">http://www.mirandabanda.org/files/Cog/VM/VM.r2359/</a> and<br>
<br>
StackToRegisterMappingCogit @<br>
<br>
<a href="http://www.mirandabanda.org/files/Cog/VM/VM.r2361" target="_blank">http://www.mirandabanda.org/files/Cog/VM/VM.r2361</a>.  I think the new code<br>
<br>
generator is ready for prime time now.  I fixed a number of bugs over<br>
<br>
the past three weeks and we&#39;re now using the StackToRegisterMappingCogit<br>
<br>
internally at Teleplace.<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Best regards,<br>
Igor Stasenko AKA sig.<br>
<br>
<br>
</blockquote>
<br>
<br>
<br>
</blockquote>
<br>
<br>
-- <br>
</div></div><font color="#888888"><a href="mailto:francois.stephany@agilitic.com" target="_blank">francois.stephany@agilitic.com</a><br>
<a href="http://www.agilitic.com" target="_blank">http://www.agilitic.com</a><br>
+32 (0)484/580.322<br>
<br>
<br>
</font></blockquote></div><br>