Datasheet

ARM Compiler Reference
ARM DUI 0067D Copyright © 1999-2001 ARM Limited. All rights reserved. 3-31
3.4 Predefined macros
Table 3-4 lists the macro names predefined by the ARM C and C++ compilers. Where
the value field is empty, the symbol is only defined.
Table 3-4 Predefined macros
Name Value When defined
__arm
If using armcc, tcc, armcpp, or tcpp.
__ARMCC_VERSION
ver For giving the version number of the compiler. The
value is the same for the ARM and Thumb compilers.
It is a decimal number, whose value can be relied on
to increase between releases. The format is PVtbbb
where:P is the product (1 for ADS)V is the minor
version (2 for 1.2)t is the patch release (0 for 1.2) bbb
is the build (750 for example). The example given
results in 120750.
__APCS_INTERWORK
If
-apcs /interwork
in use or the cpu architecture is
v5TE.
__APCS_ROPI
If
-apcs /ropi
in use.
__APCS_RWPI
If
-apcs /rwpi
in use.
__APCS_SWST
If
-apcs /swst
in use.
__BIG_ENDIAN
If compiling for a big-endian target.
__cplusplus
In C++ compiler mode.
__CC_ARM
Returns compiler name.
__DATE__
date When date of translation of source file is required.
__embedded_cplusplus
If in EC++ compiler mode.
__FEATURE_SIGNED_CHAR
–Set by
-zc
(used by
CHAR_MIN
and
CHAR_MAX
).
__FILE__
name The presumed full pathname of the current source file.
__func__
name The name of the current function.
__LINE__
num When line number of the current source file is
required.
__MODULE__
mod Contains the filename part of the value of
__FILE__
.
__OPTIMISE_SPACE
If
-Ospace
in use.