Datasheet
C and C++ Compilers
ARM DUI 0067D Copyright © 1999-2001 ARM Limited. All rights reserved. 2-3
2.1.2 Source language modes
The ARM compilers have three distinct source language modes that you can use to
compile several varieties of C and C++ source code:
ANSI C In ANSI C mode, the ARM compilers pass release 7.00 of the Plum Hall
C Validation Suite (CVS). This suite has been adopted by the British
Standards Institute for C compiler validation in Europe. The compiler
option
-strict
is used when running the tests.
EC++ This mode applies only to the ARM C++ compilers. The ARM C++
compilers compile the Embedded C++ subset of the ISO/IEC Standard
C++.
C++ This mode applies only to the ARM C++ compilers. The ARM C++
compilers compile ISO/IEC standard C++. The compilers are tested
against Suite++, The Plum Hall Validation Suite for C++, version 5.00.
This is the default language mode for the ARM C++ compilers. The
option
-strict
was used when running the tests.
For more information on how to use compiler options to set the source mode for the
compiler, see Setting the source language on page 2-14.
2.1.3 Inline assembly language
The C and C++ compilers provide inline assemblers to enable you to write optimized
assembly language routines, and access features of the target processor not available
from C or C++. See Inline assembler on page 3-18 for information on the
__asm
keyword. See also the chapter on mixing C, C++, and Assembly language in the ADS
Developer Guide for details of how to use the inline assembler, and for information on
restrictions on inline assembly language. See the ADS Assembler Guide for detailed
information on writing assembly language for the ARM. Using inline Thumb assembly
routines, however, is deprecated and generates a warning message.
2.1.4 Library support
ADS provides both ANSI C libraries in prebuilt binary form and Rogue Wave C++
libraries in prebuilt binary form. See Chapter 4 The C and C++ Libraries for detailed
information about the libraries.
You can create your own definition of target-dependent functions to customize the C
libraries. Processor-specific retargeting is done automatically by setting the compiler
options for processor architecture and family.