On Fri, 14 Dec 2012, Jonas Maebe wrote:


On 14 Dec 2012, at 09:26, patspiper wrote:

On 13/12/12 21:51, denisgolovan wrote:
Hi all

Recently I discovered that fpc refuses to use registers in my loops even with optimization turned on (-O1,-O3 used).
With the asm code commented out and without any optimization, the registers are used.

Indeed, adding inline assembler to a routine disables many optimizations.

Doesn't adding the list of modified registers to the 'ASM' block
help in this case ? I thought this was why we supported this ?

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to