[fpc-devel] Little feature teaser
Florian Klämpfl
florian at freepascal.org
Sat Aug 3 13:10:42 CEST 2013
Sven Barth <pascaldragon at googlemail.com> schrieb:
>On 03.08.2013 09:36, Sven Barth wrote:
>> Am 02.08.2013 23:26 schrieb "Florian Klämpfl" <florian at freepascal.org
>> <mailto:florian at freepascal.org>>:
>> >
>> > Am 02.08.2013 17:46, schrieb Sven Barth:
>> > > - using an array declared as a ranged array (array[0..2] of
>> LongInt) the
>> > > for-loop is inlined and optimized a bit (especially depending on
>the
>> > > optimization settings), but the compiler does not yet fold the
>loop...
>> > >
>> >
>> > At least I fixed loop unrolling for for-in loops.
>>
>> Cool! I'll need to test that with my test code :)
>
>Hmm... am I expecting too much or is it really not working?
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
More information about the fpc-devel
mailing list