Lorenzo Fantesini

Changing loop unrolling maximum increment bound highly increase code size.

Discussion created by Lorenzo Fantesini on Dec 2, 2011
Latest reply on Dec 2, 2011 by Stefan Craciun

I would like to adopt the loop unrolling with simple "for" statements, with a counter increase upper bound of 18 (instead of using the default: 16) but what I see building my program is that the code size is highly increased instead of decreasing.


How can this happen?


What i've done is just putting the command "i18" in the project settings of loop unrolling and using #PRAGMA LOOP_UNROLL before the for loop I would like to unroll.


Thanks in advance