8.142 -Otime

Performs 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.

Examples

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

while (expression) body;

as:

if (expression)
{
    do body;
    while (expression);
}
Related reference
8.133 --multifile, --no_multifile
8.138 -Onum
8.141 -Ospace
10.91 #pragma Onum
10.93 #pragma Ospace
10.94 #pragma Otime
Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.