Datasheet
ARM Compiler Reference
3-32 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0067D
__OPTIMISE_TIME
– If
-Otime
in use.
__prettyfunc__
name The unmangled name of the current function.
__sizeof_int
4 For
sizeof(int)
, but available in preprocessor
expressions.
__sizeof_long
4 For
sizeof(long)
, but available in preprocessor
expressions.
__sizeof_ptr
4
For sizeof(void *)
, but available in preprocessor
expressions.
__SOFTFP__
– If compiling to use the software floating-point library.
Set if using
-fpu softfpa
or
-fpu softvfp
for ARM or
Thumb, or if using
-fpu softvfp+vfp
for Thumb.
__STDC__
– In all compiler modes.
__STDC_VERSION__
– Standard version information.
__STRICT_ANSI__
–Set by
-strict
.
__TARGET_ARCH_xx
–
xx
represents the target architecture and its value
depends on the target architecture. For example, if the
compiler options
-cpu 4T
or
-cpu ARM7TDMI
are
specified then
__TARGET_ARCH_4T
is defined, and no
other symbol starting with
_TARGET_ARCH_
is defined.
__TARGET_CPU_xx
–
xx
represents the target cpu. The value of
xx
is derived
from the
-cpu
compiler option, or the default if none
is specified. For example, if the compiler option
-cpu
ARM7TM
is specified then
_TARGET_CPU_ARM7TM
is defined
and no other symbol starting with
_TARGET_CPU_
is
defined.
If the target architecture is specified, then
_TARGET_CPU_generic
is defined.
If the processor name contains hyphen (-) characters,
these are mapped to an underscore (
_
). For example,
-cpu SA-110
is mapped to
__TARGET_CPU_SA_110
.
__TARGET_FEATURE_DOUBLEWORD
– If the target architecture supports the
PLD
,
LDRD
,
STRD
,
MCRR
, and
MRRC
instructions.
__TARGET_FEATURE_DSPMUL
– If the DSP-enhanced multiplier is available.
Table 3-4 Predefined macros (continued)
Name Value When defined