[fpc-devel] Messages overhead

Daniël Mantione daniel.mantione at freepascal.org
Fri Jul 16 15:28:32 CEST 2010



Op Fri, 16 Jul 2010, schreef Micha Nelissen:

> Daniël Mantione wrote:
>> Compiler speed can loose from maintainability, but it can also loose from 
>> code quality; the performance of your application is probably also worth a 
>> lot to you.
>
> Does FPC compile significantly faster when using -O- then?

That is irrelevant; for example the register allocator made the compiler 
slower (initially even 3 times, but we managed to reduce it to a few ten 
%), but had great effects on code quality.

The most expensive optimization you can effect with -O is the assembler 
optimizer, this is noticable in compilation speed.

However, debug info is for example something that affects speed more.

Daniël


More information about the fpc-devel mailing list