<div dir="ltr">After fixing the assembler code and other issues, e.g., interruption handlers were not restoring all registers, I observed an speed up of ~12% with -O2 when running a simple webserver example. That's very impresive! <div><br></div><div>Thanks for you help, Matias.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-01-10 18:19 GMT+01:00 Matias Vara <span dir="ltr"><<a href="mailto:matiasevara@gmail.com" target="_blank">matiasevara@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><span class="">2018-01-10 18:09 GMT+01:00 Karoly Balogh (Charlie/SGR) <span dir="ltr"><<a href="mailto:charlie@scenergy.dfmk.hu" target="_blank">charlie@scenergy.dfmk.hu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Hi,<br>
<br>
On Wed, 10 Jan 2018, Matias Vara wrote:<br>
<br>
</span><span>> BTW, this only applies to inline assembler functions rigth? In the case<br>
> of normal procedures that contains a block asm end; there is no problem,<br>
> Am I right?<br>
<br>
</span>No, it applies to *ALL* assembler code. Also inline blocks. The only<br>
difference is, for blocks you can hint the compiler which registers you<br>
use, so the compiler can also tailor code which improves the interaction<br>
with your assembler code:<br>
<br>
<a href="https://www.freepascal.org/docs-html/ref/refse87.html" rel="noreferrer" target="_blank">https://www.freepascal.org/doc<wbr>s-html/ref/refse87.html</a><br>
<br>
This is not true for pure assembler functions tho', for performance<br>
reasons among others.<br>
<div class="m_7246556551954226252HOEnZb"><div class="m_7246556551954226252h5"><br>
Charlie<br>
</div></div></blockquote><div><br></div></span><div>This is very interesting. </div><div><br></div><div>Thanks a lot. </div><span class=""><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_7246556551954226252HOEnZb"><div class="m_7246556551954226252h5">______________________________<wbr>_________________<br>
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.or<wbr>g</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer" target="_blank">http://lists.freepascal.org/cg<wbr>i-bin/mailman/listinfo/fpc-pas<wbr>cal</a></div></div></blockquote></span></div><br></div></div>
</blockquote></div><br></div>