Keil™, An ARM® Company

RealView Compiler User's Guide

Source language modes

1.2. Source language modes

The ARM compiler has three distinct source language modes that you can use to compile different varieties of C and C++ source code:

ISO C90

The ARM compiler compiles C as defined by the 1990 C standard and addenda, excepting wide I/O.

Use the compiler option --c90 to compile C90 code. This is the default.

ISO C99

The ARM compiler compiles C as defined by the 1999 C standard and addenda, excepting complex numbers and wide I/O.

Use the compiler option --c99 to compile C99 code.

ISO C++

The ARM compiler compiles C++ as defined by the 2003 standard, excepting wide streams and export templates.

Use the compiler option --cpp to compile C++ code.

The compiler provides support for numerous extensions to the C and C++ languages. For example, some GNU compiler extensions are supported. The compiler has several modes in which compliance to a source language is either enforced or relaxed:

Strict mode

In strict mode the compiler enforces compliance with the language standard relevant to the source language.

To compile in strict mode, use the command‑line option --strict.

GNU mode

In GNU mode all the GNU compiler extensions to the relevant source language are available.

To compile in GNU mode, use the compiler option --gnu.

For more information on source language modes and language compliance, see:

Copyright © 2007 ARM Limited. All rights reserved.ARM DUI 0375A