[fpc-devel] Forwarded message about FPC statusy

Sven Barth pascaldragon at googlemail.com
Tue Dec 25 13:17:55 CET 2012


On 25.12.2012 12:55, Marco van de Voort wrote:
> In our previous episode, Sven Barth said:
>>> and linked about 10 times as fast as FPC.
>>
>> AFAIK Delphi's command line compiler does not allow you to skip the
>> assembling and linking phase, so the fairest comparison would be to
>> compare the compilation of a single unit as there the linking phase is
>> skipped. If Delphi is still better there then there are two
>> possibilities: improve the internal assembler or the parser/code
>> generator. Please keep in mind though that FPC's code generator is
>> written in such a way that the backend can be switched rather easily. As
>> we learned with the developer's blog entries about Delphi XE2 this
>> wasn't the case with Delphi XE and older. So it could be that you can
>> never reach the speed of Delphi 7's compiler as FPC is more portable.
>
> The numbers Martin names (up till 10 times slower, even without linking) are
> the numbers I have in mind too. IMHO denial without tests is unfair.

I'm not denying them, I'd just like to what the performance of the 
phases of the compiler is compared to the corresponding phases of the 
Delphi compiler. Then we can optimize that part. Or if it comes out that 
the problem is that we are more platform independant than e.g. Delphi 7 
than we can either try to improve other parts of the compiler or we are 
simply out of luck, because this platform independance is the main 
benefit of Free Pascal and I believe not many users are willing to give 
that up...

> When I'm home after Christmas I'll play a bit and see if I can duplicate the
> experiments with Delphi XE3.

Yes, XE3 numbers would definitely be welcome. If possible could you also 
compare x86_64 of XE3 and FPC?

Regards,
Sven




More information about the fpc-devel mailing list