[fpc-devel] FPC trunk compiler slower than 3.0.4

J. Gareth Moreton gareth at moreton-family.com
Mon May 21 19:34:37 CEST 2018

 One could possibly refactor elements of the compiler, and the improvements
to the optimizer might also help in places. I wouldn't call it a major
priority though, although I will make suggestions if I spot anything. 
Granted, the niche that I've crafted for myself is assembly language
optimisation, which is not appropriate for cross-platform source code.

 Gareth aka. Kit

 On Mon 21/05/18 16:55 , Jonas Maebe jonas at freepascal.org sent:
 On 21/05/18 17:42, Florian Klämpfl wrote: 
 > Am 18.05.2018 um 17:32 schrieb Ondrej Pokorny: 
 >> I observe that FPC trunk compiler is about 65-70% (factor 1.65-1.7)
slower than FPC 3.0.4 compiler. 
 >> E.g. building Lazarus IDE takes on my machine: 
 >> 1:00 with FPC 3.0.4 
 >> 1:40 with FPC trunk 
 >> Do you observe the same? Any hints why? 
 > New features? E.g. helpers made fpc a lot slower (or are they already in
3.0.x?) Optimizer improved 
 > and made the compiler slower etc. 

 The new typed constant generator is also much slower than the old "just 
 emit sequences of bytes" approach. On the other hand, it's much less 
 error prone (no more alignment issues), much more portable and higher 
 level. It's been in trunk for four years already though. 


 fpc-devel maillist - fpc-devel at lists.freepascal.org [1] 


[1] mailto:fpc-devel at lists.freepascal.org
[2] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20180521/197ae4b9/attachment.html>

More information about the fpc-devel mailing list