Forum > Embedded - AVR
[CLOSED] FOR loop unrolling
julkas:
When compiler unroll loops?
Is it general behavior or ... ?
Thaddy:
As with any compiler that supports it: what is the complexity of the loop?
A loop of 5-6 iterations may be unrolled but 10000 iterations is silly.
On small loops - with a determinate finish - FPC does an excellent job.
marcov:
Unroll till 1500 muops ?
julkas:
And how disable / enable loop unrolling in code?
I compile with -O3 option.
Can be unrolled while and repeat loops or only for?
Thaddy:
--- Quote from: julkas on December 20, 2019, 05:22:22 pm ---And how disable / enable loop unrolling in code?
I compile with -O3 option.
Can be unrolled while and repeat loops or only for?
--- End quote ---
-OoLOOPUNROLL-
Navigation
[0] Message Index
[#] Next page