[fpc-pascal] Registers in loops
michael.vancanneyt at wisa.be
michael.vancanneyt at wisa.be
Fri Dec 14 13:46:37 CET 2012
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.
More information about the fpc-pascal
mailing list