<br><br><div class="gmail_quote">On Thu, Jul 21, 2011 at 3:29 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>
On 22 July 2011 02:04,  &lt;<a href="mailto:squeak-dev-noreply@lists.squeakfoundation.org">squeak-dev-noreply@lists.squeakfoundation.org</a>&gt; wrote:<br>
&gt;<br>
&gt; Eliot Miranda uploaded a new version of VMMaker to project VM Maker:<br>
&gt; <a href="http://www.squeaksource.com/VMMaker/VMMaker.oscog-eem.108.mcz" target="_blank">http://www.squeaksource.com/VMMaker/VMMaker.oscog-eem.108.mcz</a><br>
&gt;<br>
&gt; ==================== Summary ====================<br>
&gt;<br>
&gt; Name: VMMaker.oscog-eem.108<br>
&gt; Author: eem<br>
&gt; Time: 21 July 2011, 1:45:28 am<br>
&gt; UUID: 06af30e4-7c67-4259-88dc-8ee2a10499c4<br>
&gt; Ancestors: VMMaker.oscog-eem.107<br>
&gt;<br>
&gt; Nuke ReentrantFFIPlugin in favour of ThreadedFFIPlugin, using<br>
&gt; cppIf: COGMTVM to select threading-specific code.  This so that<br>
&gt; there only needs to be one SqueakFFIPrims.c for the reentrant<br>
&gt; (non-threaded) and threaded FFI plugins.  This is a much easier<br>
&gt; fix than somehow allowing the two files to exist side-by-side in<br>
&gt; the file system.<br>
&gt;<br>
&gt;<br>
<br>
:)<br>
in cmake configs we dealt with this by simply including proper plugin class.<br>
But indeed there&#39;s a lot of XyZFFIPlugins out there..<br></blockquote><div><br></div><div>You may have missed the point.  Both of these plugins emit a source file called src/vm/plugins/SqueakFFIPrims/SqueakFFIPrims.c sicne they are both different versions of the FFI plugin, one for a non-threaded VM, one for a threaded VM.  If I were to generate both of them at the same time one would overwrite the other.  If I were to change the name of one of them then all the builds would be affected and have to be modified to choose a different source depending on whether COGMTVM=1 or COGMTVM=0.  [Note it was difficult enough to get the builds to choose either cointerp.c cointerpmt.c gcc3x-cointerp.c or gcc3x-cointerpmt.c].  So the easiest way to be able to select these different variants is to collapse them into one class and use cppIf: to choose between non-threaded and threaded code based on COGMTVM.</div>
<div><br></div><div>HTH</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font color="#888888">--<br>
Best regards,<br>
Igor Stasenko AKA sig.<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>best,<div>Eliot</div><br>