You copied the Doc URL to your clipboard.

--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.

Syntax

--cpu=name

Where name is the name of an ARM processor or architecture. For details, see the description of --cpu=name compiler option.

Usage

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.

Note

If the --cpu option has a built-in floating-point unit (FPU) then the linker implies --fpu=built-in_fpu. For example, --cpu=cortex-a8 implies --fpu=vfpv3.

Was this page helpful? Yes No