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

f PROC<br />

AREA ||i.f||, CODE, READONLY, ALIGN=2<br />

ADD r0,r0,#1<br />

BX lr<br />

ENDP<br />

See also<br />

• --[no_]data_reorder on page 2-20<br />

• --feedback=filename on page 2-37<br />

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

• __attribute__((section)) on page 4-34<br />

• #pragma arm section [section_sort_list] on page 4-50<br />

• Using linker feedback on page 2-25 in the <strong>Compiler</strong> User <strong>Guide</strong>.<br />

2.1.112 --[no_]strict<br />

This option enforces or relaxes strict C or strict C++, depending on the choice of source<br />

language used.<br />

When --strict is selected:<br />

• features that conflict with ISO C or ISO C++ are disabled<br />

• error messages are returned when nonstandard features are used.<br />

Default<br />

The default is --no_strict.<br />

Usage<br />

--strict enforces compliance with:<br />

ISO C90 • ISO/IEC 9899:1990, the 1990 International Standard for C.<br />

• ISO/IEC 9899 AM1, the 1995 Normative Addendum 1.<br />

ISO C99 ISO/IEC 9899:1999, the 1999 International Standard for C.<br />

ISO C++<br />

ISO/IEC 14822:2003, the 2003 International Standard for C++.<br />

Errors<br />

When --strict is in force and a violation of the relevant ISO standard occurs, the<br />

compiler issues an error message.<br />

The severity of diagnostic messages can be controlled in the usual way.<br />

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

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!