Datasheet

C and C++ Compilers
2-20 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0067D
Use only a single processor or architecture name with
-cpu
. You cannot specify
both a processor and an architecture.
•If
-cpu
is not specified, the default is
-cpu ARM7TDMI
.
Specifying a Thumb-aware processor, such as
-cpu ARM7TDMI
to armcc or armcpp
does not make these compilers generate Thumb code. It only allows features of
the processor to be used, such as interworking instructions. Use tcc or tcpp to
generate Thumb code.
The following options are available:
-cpu name
This option generates code for a specific ARM processor or architecture.
If
name
is a processor:
You must enter the name exactly as it is shown on ARM data
sheets, for example
ARM7TDMI
. Wildcard characters are not accepted.
Valid values are any ARM6 or later ARM processor.
Selecting the processor selects the appropriate architecture, fpu,
and memory organization.
•Some
-cpu
selections imply an
-fpu
selection. For example, with
the ARM compilers
-cpu ARM10200E
implies
-fpu vfpv2
. The
implied
-fpu
is overridden if you specify an explicit
-fpu option
. If
no
-fpu
option and no
-cpu
option are specified,
-fpu softvfp
is
used.
If
name
is an architecture, it must be one of:
3
ARMv3 without long multiply.
3M
ARMv3 with long multiply.
4
ARMv4 with long multiply but no Thumb.
4xM
ARMv4 without long multiply or Thumb.
4T
ARMv4 with long multiply and Thumb.
4TxM
ARMv4 without long multiply but with Thumb.
5T
ARMv5 with long multiply and Thumb.
5TE
ARMv5 with long multiply, Thumb, DSP multiply, and
double-word instructions.
5TEJ
ARMv5 with long multiply, Thumb, DSP multiply,
double-word instructions, and Jazelle extensions.
-fpu name
This option selects the target Floating-Point Unit (FPU) architecture. If
you specify this option it overrides any implicit FPU set by the
-cpu
option.