[fpc-devel] Optimization stops near inline asm
Alexander Klenin
klenin at gmail.com
Mon Oct 3 11:05:51 CEST 2011
2011/10/3 Jonas Maebe <jonas.maebe at elis.ugent.be>:
> asm nop end [];
>
> then the statement will optimized. Otherwise the compiler assumes that the
> contents of eax may still be used inside the assembler block and hence
> cannot remove its use.
>
> The fact that the optimization is performed in case the used register is ax
> instead of eax suggests a small bug.
I see, thanks.
--
Alexander S. Klenin
More information about the fpc-devel
mailing list