[fpc-devel] TFPHashList (Was: Alternative parsers)

Florian Klämpfl florian at freepascal.org
Fri Oct 22 23:30:38 CEST 2010


Am 22.10.2010 23:17, schrieb Dariusz Mazur:
> full source in attachment (should I prepare it different?)

The best would be a diff against compiler sources.

> Second: when I review assembler list I've notice some strange lines (all
> optimizations are enabled):
> 
> # [124] dec(ii);
>     movl    %esi,%eax
>     decl    %eax
>     movl    %eax,%esi
> .Lj16:
>     movl    %esi,%eax <-  this is not necessary
>     testl    %eax,%eax
>     jg    .Lj15
> 
> In source this is
> while ii>0 do begin
>   ..
>   dec(ii)
> end;
> 
> 
> Can be added some optimizations to avoid this doubled move.

Which compiler version? 2.4.x? I think r15502 in trunk should fix this.



More information about the fpc-devel mailing list