<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-07-12 22:24 GMT+02:00 Luciano Notarfrancesco <span dir="ltr">&lt;<a href="mailto:luchiano@gmail.com" target="_blank">luchiano@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Apr 23, 2016 at 7:48 PM, Eliot Miranda <span dir="ltr">&lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Plugins:<br></div><div>Upgrade LargeIntegersPlugin to v2.0</div><div>LargeInteger primitives now deal with 32-bits digits.  No change to image code.</div><div><br></div><div>Memory is 8 bytes aligned on Spur. When storing 32/64 bits large</div><div>integers values, allways fill the eight bytes whatever the</div><div>effectivily used size, rather than bother with dissertion of size.</div><div><br></div><div>Generate integer type checking as C macros rather than direct/indirect</div><div>interpreterProxy function call in plugins. This, and 32-bit accessing mean</div><div>singificantly faster large integer arithmetic.</div><div><br></div></div></blockquote><div><br></div><div>Awesome!</div><div>The legs are in the architecture endianness?<br></div><div>What are the reasons to not use GMP? Could we use it if was already installed in the host platform? It seems to me that it would be quite straight forward to call to the GMP low-level API from the LargeIntegersPlugin, without making any changes in the image. <a href="https://gmplib.org/manual/Low_002dlevel-Functions.html" target="_blank">https://gmplib.org/manual/Low_002dlevel-Functions.html</a><br></div><div><br></div></div></div></div>
<br></blockquote><div>Yes, it would be a nice projet to write a GMPLargeIntegersPlugin.<br>GNU smalltalk is using gmp already, so it might be quite easy, no need to re-invent, just to rewrite.<br></div><div>GMP is LGPL, I don&#39;t know the impact on our VM, but it in no way a show stopper for experimentation. <br></div></div><br></div></div>