<br><br><div class="gmail_quote">On Wed, Mar 20, 2013 at 5:14 PM, David T. Lewis <span dir="ltr">&lt;<a href="mailto:lewis@mail.msen.com" target="_blank">lewis@mail.msen.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 Tue, Mar 19, 2013 at 09:29:53PM +0100, Nicolas Cellier wrote:<br>
&gt;<br>
&gt; Trying to backport the LargeInteger v2 plugins, I saw that there is an<br>
&gt; important difference in the shared variables, notably class variables<br>
&gt; vs poolDictionary, for example VMBIGENDIAN is not accessible in<br>
&gt; Interpreter plugins. So it would probably be the first job.<br>
&gt;<br>
<br>
Can you give me a pointer to the code for which this was a problem? I&#39;d like<br>
to understand the issue better.<br>
<br>
The VMBIGENDIAN macro was eliminated long ago in favor of a static variable<br>
initialized at runtime:<br></blockquote><div><br></div><div>Not in Cog.  I don&#39;t see the point of using other than a macro for something that definitely *won&#39;t* change at runtime.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
  Name: VMMaker-tpr.40<br>
  Author: tpr<br>
  Time: 29 December 2005, 1:36:18 pm<br>
  UUID: d58632a4-6ae7-4880-9cc9-a52fcd0d98fa<br>
  Ancestors: VMMaker-tpr.39<br>
<br>
  use dave lewis&#39; runtimediscovery of vm endianness instead of ugly macro<br>
<br>
A macro is faster than dereferencing a variable, but I would be surprised to<br>
find a measurable difference in the overall context of calling a primitive.<br>
<br>
Meanwhile, platform endianness can be determined with #vmEndianness, which<br>
is portable across the oscog and trunk branches. On oscog it uses the macro,<br>
and for the interpreter in trunk it uses the cached value set at runtime.<br>
So I think it should be possible to write the LargeInteger v2 primitives to<br>
work on both branches.<br>
<br>
Thanks,<br>
Dave<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>