[fpc-devel] static vs dynamic arrays

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Apr 4 16:32:10 CEST 2006

On 4 apr 2006, at 16:28, Jonas Maebe wrote:

> No, that is not true. He's now using plain pointers. The compiler  
> does not keep track of the fact that a particular pointer points to  
> a reference-counted type. Both loops are now equally fast in  
> principle (and they are in practice on e.g. ppc).
> The only "problem" is that c and c1 are also assigned registers,  
> and become in use after the first loop. Because of this, bp and bpp  
> can't be assigned a register anymore on x86 and are kept in memory  
> instead of in a register. The register allocator puts registers  
> with most conflicts in memory first, and these variables apparently  
> have more conflicts than c/c1.

Oh, and this particular case would in fact be avoided with static  
single assignment, which is not yet implemented in the compiler.


More information about the fpc-devel mailing list