|Non-Confidential||PDF version||ARM DUI0472M|
|Home > Compiler Command-line Options > --loop_optimization_level=opt|
Trades code size for performance by controlling how much loop optimization the compiler performs.
The compiler can use several different techniques for specifically targeting loop optimizations, such as loop unrolling and inlining. However, these techniques can impact code size.
is one of:
Non-zero values (1 or 2) can be used when either the
-O3 -Otime or
-O2 -Otime --vectorize options are given.
armcc -O3 -Otime --loop_optimization_level=2 ...
The default is 1 for
-O3 -Otime and
-O2 -Otime --vectorize, otherwise it is 0.