<br><br><div class="gmail_quote">On Thu, Mar 17, 2011 at 10:13 AM, 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;">
<div class="im">On 17 March 2011 18:07, Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>> wrote:<br>
><br>
><br>
> On Thu, Mar 17, 2011 at 7:46 AM, Igor Stasenko <<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>> wrote:<br>
>><br>
>> Hi, Eliot<br>
>><br>
>> is your new stuff having platform-specific files changes?<br>
><br>
> The Sista stuff requires nothing new. I think I've already integrated the<br>
> changes necessary for the threaded VM but I've only tried to build the<br>
> threaded VM against the Teleplace platforms hierarchy, not yet against the<br>
> oscog platforms hierarchy. So if you try and build the threaded VM you may<br>
> hit problems, you may not. I'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'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="'comic sans ms', sans-serif">/* Automatically generated by</font></div>
<div><font class="Apple-style-span" face="'comic sans ms', sans-serif"> CCodeGeneratorGlobalStructure VMMaker-eem.734 uuid: cf815676-05e1-44d8-be7f-62138a99b532</font></div><div><font class="Apple-style-span" face="'comic sans ms', sans-serif"> */</font></div>
<div><font class="Apple-style-span" face="'comic sans ms', sans-serif"><br></font></div><div><font class="Apple-style-span" face="'comic sans ms', sans-serif">#define COGVM 1</font></div><div><font class="Apple-style-span" face="'comic sans ms', sans-serif">#if !defined(COGMTVM)</font></div>
<div><font class="Apple-style-span" face="'comic sans ms', sans-serif"># define COGMTVM 1</font></div><div><font class="Apple-style-span" face="'comic sans ms', sans-serif">#endif</font></div><div><font class="Apple-style-span" face="'comic sans ms', sans-serif">#define STACKVM 1</font></div>
<div><font class="Apple-style-span" face="'comic sans ms', sans-serif">#define SQ_VI_BYTES_PER_WORD 4</font></div><div><font class="Apple-style-span" face="'comic sans ms', sans-serif"><br></font></div><div>
<font class="Apple-style-span" face="'comic sans ms', sans-serif">#define PrimErrGenericFailure 1</font></div><div><font class="Apple-style-span" face="'comic sans ms', sans-serif">#define PrimErrBadReceiver 2</font></div>
<div><font class="Apple-style-span" face="'comic sans ms', sans-serif">#define PrimErrBadArgument 3</font></div><div><font class="Apple-style-span" face="'comic sans ms', sans-serif">#define PrimErrBadIndex 4</font></div>
<div><font class="Apple-style-span" face="'comic sans ms', sans-serif">#define PrimErrBadNumArgs 5</font></div><div><font class="Apple-style-span" face="'comic sans ms', sans-serif">#define PrimErrInappropriate 6</font></div>
<div><font class="Apple-style-span" face="'comic sans ms', sans-serif">#define PrimErrUnsupported 7</font></div><div><font class="Apple-style-span" face="'comic sans ms', sans-serif">#define PrimErrNoModification 8</font></div>
<div><font class="Apple-style-span" face="'comic sans ms', sans-serif">#define PrimErrNoMemory 9</font></div><div><font class="Apple-style-span" face="'comic sans ms', sans-serif">#define PrimErrNoCMemory 10</font></div>
<div><font class="Apple-style-span" face="'comic sans ms', sans-serif">#define PrimErrNotFound 11</font></div><div><font class="Apple-style-span" face="'comic sans ms', sans-serif">#define PrimErrBadMethod 12</font></div>
<div><font class="Apple-style-span" face="'comic sans ms', sans-serif">#define PrimErrNamedInternal 13</font></div><div><font class="Apple-style-span" face="'comic sans ms', sans-serif">#define PrimErrObjectMayMove 14</font></div>
<div><font class="Apple-style-span" face="'comic sans ms', sans-serif">#define PrimErrLimitExceeded 15</font></div><div><font class="Apple-style-span" face="'comic sans ms', sans-serif"><br></font></div><div>
<font class="Apple-style-span" face="'comic sans ms', 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 & #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>
>><br>
>> I'm asking because i'd like to merge it with<br>
>> VMMaker-oscog-EstebanLorenzano.50<br>
>> and then bump the package versions in ConfigurationOfCog<br>
>><br>
>><br>
>> --<br>
>> Best regards,<br>
>> Igor Stasenko AKA sig.<br>
><br>
><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>