Sven Barth <pascaldra...@googlemail.com> schrieb:
>On 03.08.2013 09:36, Sven Barth wrote:
>> Am 02.08.2013 23:26 schrieb "Florian Klämpfl" <flor...@freepascal.org
>> <mailto:flor...@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

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

Reply via email to