[fpc-devel] Faster InitObject

Sergei Gorelkin sergei_gorelkin at mail.ru
Thu Feb 23 20:06:15 CET 2012

23.02.2012 22:57, Marco van de Voort пишет:
> In our previous episode, Sergei Gorelkin said:
>>> In August 2010 Florian already said that maybe FillChar should be optimized:
>>> http://lists.freepascal.org/lists/fpc-devel/2010-July/021146.html (at the bottom)
>> In early 2011 I wrote an assembler implementation of FillChar for x86_64 (cannot be used for FreeBSD
>> due to its toolchain problems), it executes approximately 4 times less instructions than generic
>> version.
> Meanwhile 2.6.1 and 2.7.1 should use internal assembler now. Is there something I can
> test?

There is {$ifndef freebsd} in rtl/x86_64/x86_64.inc line 63. You can try to disable that ifdef and 
see what happens while recompiling the RTL.


More information about the fpc-devel mailing list