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

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

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

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

2.1.36 --diag_warning=optimizations<br />

This option sets high-level optimization diagnostic messages to have Warning severity.<br />

Default<br />

By default, optimization messages have Remark severity.<br />

Usage<br />

The compiler performs certain high-level vector and scalar optimizations when<br />

compiling at the optimization level -O3 -Otime, for example, loop unrolling. Use this<br />

option to display diagnostic messages relating to these high-level optimizations.<br />

Example<br />

int factorial(int n)<br />

{<br />

int result=1;<br />

while (n > 0)<br />

result *= n--;<br />

}<br />

return result;<br />

Compiling this code with the options --vectorize --cpu=Cortex-A8 -O3 -Otime<br />

--diag_warning=optimizations generates optimization warning messages.<br />

See also<br />

• --diag_suppress=optimizations on page 2-29<br />

• --diag_warning=tag[,tag,...] on page 2-30<br />

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

• -Otime on page 2-69.<br />

2.1.37 --[no_]dllexport_all<br />

This option enables you to control symbol visibility when building DLLs.<br />

Default<br />

The default is --no_dllexport_all.<br />

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

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!