9.26 --cpu=name

Enables code generation for the selected ARM® processor

Syntax

--cpu=name
Where name is the name of a processor. Enter name as shown on ARM data sheets, for example, Cortex-M3.
Processor names are not case-sensitive.

Usage

The following general points apply to processor options:
Processors
  • Selecting the processor selects the appropriate architecture, Floating-Point Unit (FPU), and memory organization.
  • If you specify a processor for the --cpu option, the generated code is optimized for that processor.
FPU
  • Some specifications of --cpu imply an --fpu selection.

    Note

    Any explicit FPU, set with --fpu on the command line, overrides an implicit FPU.
  • If no --fpu option is specified and no --cpu option is specified, --fpu=softvfp is used.

Default

armlink assumes --cpu=ARM7TDMI if you do not specify a --cpu option.

Restrictions

You cannot specify both a processor and an architecture on the same command-line.
Related reference
9.25 --cpu=list
9.52 --fpu=list
9.53 --fpu=name
Related information
Types of floating-point linkage
Compiler options for floating-point linkage and computations
Floating-point linkage and computational requirements of compiler options
Processors and their implicit Floating-Point Units (FPUs)
Non-ConfidentialPDF file icon PDF versionARM DUI0377G
Copyright © 2007, 2008, 2011, 2012, 2014, 2015 ARM. All rights reserved.