[fpc-devel] Patch for rtl/inc/rtti.inc

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Sep 14 15:48:23 CEST 2008


On 14 Sep 2008, at 14:49, Markus Beth wrote:

> this patch rewrites code of ArrayRTTI and fpc_Copy to allow the  
> compiler to generate faster code (at least on i386).
> The change in ArrayRTTI yields a performance gain of ~4% for our  
> real world application on a 3 GHz Intel Xeon.
> The change in fpc_Copy is completely untestet because I don't know  
> when this compilerproc is called. Maybe someone who knows can hack a  
> quick benchmark...

I don't think it's a good idea to start manually adding loop induction  
variables to many routines in the rtl. It makes the code less  
maintainable, and at one point the compilation process itself will/ 
should do that by itself.


Jonas



More information about the fpc-devel mailing list