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!
Thanks for you help, Matias. 2018-01-10 18:19 GMT+01:00 Matias Vara <matiasev...@gmail.com>: > > 2018-01-10 18:09 GMT+01:00 Karoly Balogh (Charlie/SGR) < > char...@scenergy.dfmk.hu>: > >> Hi, >> >> On Wed, 10 Jan 2018, Matias Vara wrote: >> >> > BTW, this only applies to inline assembler functions rigth? In the case >> > of normal procedures that contains a block asm end; there is no problem, >> > Am I right? >> >> No, it applies to *ALL* assembler code. Also inline blocks. The only >> difference is, for blocks you can hint the compiler which registers you >> use, so the compiler can also tailor code which improves the interaction >> with your assembler code: >> >> https://www.freepascal.org/docs-html/ref/refse87.html >> >> This is not true for pure assembler functions tho', for performance >> reasons among others. >> >> Charlie >> > > This is very interesting. > > Thanks a lot. > > > >> _______________________________________________ >> fpc-pascal maillist - fpc-pascal@lists.freepascal.org >> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal >> > >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal