29.12.2014 Views

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Compiler</strong> Command-line Options<br />

Default<br />

If you do not specify either -Ospace or -Otime, the compiler assumes -Ospace.<br />

See also<br />

• -Otime<br />

• -Onum on page 2-66<br />

• #pragma Onum on page 4-57<br />

• #pragma Ospace on page 4-58<br />

• #pragma Otime on page 4-58.<br />

2.1.90 -Otime<br />

This option instructs the compiler to perform optimizations to reduce execution time at<br />

the expense of a possible increase in image size.<br />

Use this option if execution time is more critical than code size. If required, you can<br />

compile the time-critical parts of your code with -Otime, and the rest with -Ospace.<br />

Default<br />

If you do not specify -Otime, the compiler assumes -Ospace.<br />

Example<br />

When the -Otime option is selected, the compiler compiles:<br />

while (expression) body;<br />

as:<br />

if (expression)<br />

{<br />

do body;<br />

while (expression);<br />

}<br />

See also<br />

• --[no_]multifile on page 2-63<br />

• -Onum on page 2-66<br />

• -Ospace on page 2-68<br />

• #pragma Onum on page 4-57<br />

• #pragma Ospace on page 4-58<br />

<strong>ARM</strong> DUI 0348A Copyright © 2007, 2010 <strong>ARM</strong> Limited. All rights reserved. 2-69<br />

Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!