[fpc-devel] Little feature teaser

Sven Barth pascaldragon at googlemail.com
Sun Aug 4 14:20:41 CEST 2013


On 04.08.2013 10:46, Florian Klaempfl wrote:
> Am 03.08.2013 23:31, schrieb Sven Barth:
>> On 03.08.2013 22:50, Florian Klämpfl wrote:
>>> Am 03.08.2013 17:19, schrieb Sven Barth:
>>>> On 03.08.2013 13:12, Florian Klämpfl wrote:
>>>>>
>>>>>> First, FPC does not loop unrolling by default, you need
>>>>>> -Ooloopunroll,
>>>>>> second, the loop is relatively long, so let the compiler assume a
>>>>>> long
>>>>>> pipeline with - Cppentium4
>>>>>>
>>>>>
>>>>> -Oopentium4 it is.
>>>>
>>>> Are you sure that you don't mean -Oppentium4? The compiler complains
>>>> with —Oopentium4. And it doesn't change anything (also with
>>>> -Ooloopunroll) :(
>>>
>>> There was indeed a mistake in optunroll.pas, -Oppentium4 -Ooloopunroll
>>> should work now.
>>
>> Jupp, it indeed works now. Now the compiler would "just" need to detect
>> that the for loop is basically only using constants and evaluate that at
>> compile time... but that's a wish for another day ;)
>
> I think item 635365 of my todo list, the autovectorizer would solve it ;)

Then I just need to wait until you've done the 635364 other items on 
your list. Sounds doable :P

Regards,
Sven




More information about the fpc-devel mailing list