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.

Introduction<br />

1.2 Source language modes<br />

The <strong>ARM</strong> compiler has three distinct source language modes that you can use to<br />

compile different varieties of C and C++ source code. These are:<br />

• ISO C90<br />

• ISO C99<br />

• ISO C++.<br />

1.2.1 ISO C90<br />

The <strong>ARM</strong> compiler compiles C as defined by the 1990 C standard and addenda:<br />

• ISO/IEC 9899:1990. The 1990 International Standard for C.<br />

• ISO/IEC 9899 AM1. The 1995 Normative Addendum 1, adding international<br />

character support through wchar.h and wtype.h.<br />

The <strong>ARM</strong> compiler also supports several extensions to ISO C90. See Language<br />

extensions and language compliance on page 1-5 for more information.<br />

Throughout this document, the term:<br />

C90<br />

Strict C90<br />

Means ISO C90, together with the <strong>ARM</strong> extensions.<br />

Use the compiler option --c90 to compile C90 code. This is the default.<br />

Means C as defined by the 1990 C standard and addenda.<br />

See also<br />

• --c90 on page 2-22<br />

• Language extensions and language compliance on page 1-5<br />

• Appendix B Standard C Implementation Definition.<br />

1.2.2 ISO C99<br />

The <strong>ARM</strong> compiler compiles C as defined by the 1999 C standard and addenda:<br />

• ISO/IEC 9899:1999. The 1999 International Standard for C.<br />

The <strong>ARM</strong> compiler also supports several extensions to ISO C99. See Language<br />

extensions and language compliance on page 1-5 for more information.<br />

Throughout this document, the term:<br />

C99<br />

Means ISO C99, together with the <strong>ARM</strong> and GNU extensions.<br />

Use the compiler option --c99 to compile C99 code.<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!