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

Example

When the -Otime option is selected, the compiler compiles:
while (expression) body;
as:
if (expression)
{
    do body;
    while (expression);
}
Related reference
7.115 --multifile, --no_multifile
7.120 -Onum
7.124 -Ospace
9.89 #pragma Onum
9.91 #pragma Ospace
9.92 #pragma Otime
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.