04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Compiler Command-line Options<br />

2.1.122 -Ospace<br />

This option instructs the compiler to perform optimizations to reduce image size at the<br />

expense of a possible increase in execution time.<br />

Use this option if code size is more critical than performance. For example, when the<br />

-Ospace option is selected, large structure copies are done by out-of-line function calls<br />

instead of inline code.<br />

If required, you can compile the time-critical parts of your code with -Otime, and the rest<br />

with -Ospace.<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-96<br />

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

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

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

2.1.123 -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 />

<strong>ARM</strong> DUI 0348C Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. 2-99<br />

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!