| |||
| Home > Linker command-line options > --cpu=name | |||
This option enables the linker to determine the target ARM processor or architecture. It has the same format as the option supported by the compiler.
--cpu=name
Where is
the name of an ARM processor or architecture. For details, see the
description of name--cpu= compiler
option.name
The link phase fails if any of the component object files rely on features that are incompatible with the selected processor. The linker also uses this option to optimize the choice of system libraries and any veneers that need to be generated when building the final image. The default is to select a CPU that is compatible with all of the component object files. That is, to select the most up-to-date architecture among all input objects.
If the --cpu option has a built-in floating-point
unit (FPU) then the linker implies --fpu=.
For example, built-in_fpu--cpu=cortex-a8 implies --fpu=vfpv3.