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

Create successful ePaper yourself

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

Compiler Command-line Options<br />

Default<br />

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

--diag_suppress=optimizations suppresses optimization messages.<br />

Note<br />

Use the --remarks option to see optimization messages having Remark severity.<br />

Usage<br />

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

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

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

return result;<br />

}<br />

Compiling this code with the options -O3 -Otime --remarks<br />

--diag_suppress=optimizations suppresses optimization messages.<br />

See also<br />

• --diag_suppress=tag[,tag,...] on page 2-47<br />

• --diag_warning=optimizations on page 2-49<br />

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

• -Otime on page 2-99<br />

• --remarks on page 2-111.<br />

2.1.53 --diag_warning=tag[,tag,...]<br />

This option sets the diagnostic messages that have the specified tags to Warning<br />

severity.<br />

The --diag_warning option behaves analogously to --diag_errors, except that the<br />

compiler sets the diagnostic messages having the specified tags to Warning severity<br />

rather than Error severity.<br />

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

Non-Confidential,<br />

ID101213

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

Saved successfully!

Ooh no, something went wrong!