<br><br><div class="gmail_quote">On Thu, Mar 17, 2011 at 10:13 AM, 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;">
<div class="im">On 17 March 2011 18:07, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Mar 17, 2011 at 7:46 AM, Igor Stasenko &lt;<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi, Eliot<br>
&gt;&gt;<br>
&gt;&gt; is your new stuff having platform-specific files changes?<br>
&gt;<br>
&gt; The Sista stuff requires nothing new.   I think I&#39;ve already integrated the<br>
&gt; changes necessary for the threaded VM but I&#39;ve only tried to build the<br>
&gt; threaded VM against the Teleplace platforms hierarchy, not yet against the<br>
&gt; oscog platforms hierarchy.  So if you try and build the threaded VM you may<br>
&gt; hit problems, you may not.  I&#39;ll get around to doing that soon.<br>
<br>
</div>and sorry for ignorance..<br>
what is the magic invocation for generating sources for threaded VMs?<br></blockquote><div><br></div><div>Just substitute CoInterpreterMT for CoInterpreter.  Then you&#39;ll find </div><div><div>    src/vm/cointerpmt.c             src/vm/gcc3x-cointerpmt.c</div>
<div>    src/vm/cointerpmt.h</div></div><div>You must also generate CoInterpreterMT second, and then src/vm/interp.h will read:</div><div><br></div><div><div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">/* Automatically generated by</font></div>
<div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">        CCodeGeneratorGlobalStructure VMMaker-eem.734 uuid: cf815676-05e1-44d8-be7f-62138a99b532</font></div><div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif"> */</font></div>
<div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif"><br></font></div><div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#define COGVM 1</font></div><div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#if !defined(COGMTVM)</font></div>
<div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#       define COGMTVM 1</font></div><div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#endif</font></div><div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#define STACKVM 1</font></div>
<div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#define SQ_VI_BYTES_PER_WORD 4</font></div><div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif"><br></font></div><div>
<font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#define PrimErrGenericFailure 1</font></div><div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#define PrimErrBadReceiver 2</font></div>
<div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#define PrimErrBadArgument 3</font></div><div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#define PrimErrBadIndex 4</font></div>
<div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#define PrimErrBadNumArgs 5</font></div><div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#define PrimErrInappropriate 6</font></div>
<div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#define PrimErrUnsupported 7</font></div><div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#define PrimErrNoModification 8</font></div>
<div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#define PrimErrNoMemory 9</font></div><div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#define PrimErrNoCMemory 10</font></div>
<div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#define PrimErrNotFound 11</font></div><div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#define PrimErrBadMethod 12</font></div>
<div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#define PrimErrNamedInternal 13</font></div><div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#define PrimErrObjectMayMove 14</font></div>
<div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#define PrimErrLimitExceeded 15</font></div><div><font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif"><br></font></div><div>
<font class="Apple-style-span" face="&#39;comic sans ms&#39;, sans-serif">#define DisownVMLockOutFullGC 1</font></div></div><div><br></div><div> and then in one set of makefiles use -DCOGMTVM=0 and pickup cointerp.c or gcc3x-cointerp.c and in the other use -DCOGMTVM=1 and pickup cointerpmt.c or gcc3x-cointerpmt.c</div>
<div><br></div><div>Look for #if COGMTVM &amp; #if !COGMTVM in the platforms sources to see where the additions are.  Make sure you use the ThreadedFFIPlugin (ThreadedIA32FFIPlugin on x86).</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im"><br>
<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m asking because i&#39;d like to merge it with<br>
&gt;&gt; VMMaker-oscog-EstebanLorenzano.50<br>
&gt;&gt; and then bump the package versions in ConfigurationOfCog<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Best regards,<br>
&gt;&gt; Igor Stasenko AKA sig.<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div>--<br>
<div><div></div><div class="h5">Best regards,<br>
Igor Stasenko AKA sig.<br>
</div></div></blockquote></div><br>