2.1.90. -Otime

This option instructs the compiler to perform optimizations to reduce execution time at the expense of a possible increase in image size.

Use this option if execution time is more critical than code size. If required, you can compile the time-critical parts of your code with -Otime, and the rest with -Ospace.

Default

If you do not specify -Otime, the compiler assumes -Ospace.

Example

When the -Otime option is selected, the compiler compiles:

while (expression) body;

as:

if (expression)
{
    do body;
    while (expression);
}

See also

Copyright © 2007, 2010 ARM Limited. All rights reserved.ARM DUI 0348A
Non-Confidential