[fpc-devel] static vs dynamic arrays

Пётр Косаревский ppkk at mail.ru
Tue Apr 4 11:41:13 CEST 2006


> > I didn't dig sources, but is it really hard to make them equally  
> > fast? (By the way, the speed difference was less, than I expected.)
> 
> They are equally fast if you turn on register variables and if enough  
> free registers are available (e.g. on a PPC; possibly also on an x86  
> if you have a very simple loop and little or no variables used both  
> before and after the loop).
> Jonas_______________________________________________

It's wrong.

About the number of variables: you saw the whole source of the sample program.

About register variables: I compiled it with -O3rp4 options.



More information about the fpc-devel mailing list