3.1.5. FPU names

There is an option to specify the FPU name:

--fpu name

Selects the target floating-point unit (FPU) architecture. If you specify this option it overrides any implicit FPU set by the --cpu option. Floating-point instructions produce either errors or warnings if assembled for the wrong target FPU.

The assembler sets a build attribute corresponding to name in the object file. The linker determines compatibility between object files, and selection of libraries, accordingly.

Valid values for name are:

none

Selects no floating-point architecture. This makes your assembled object file compatible with any other object file.

vfpv2

Selects hardware vector floating-point unit conforming to architecture VFPv2.

softvfp

Selects software floating-point library (fplib). This is the default if you do not specify a --fpu option and the --cpu option selected does not imply a particular FPU.

softvfp+vfpv2

Selects a floating-point library with software floating-point linkage that uses vector floating-point instructions.

This is equivalent to using --fpu vfpv2.

See the C and C++ Compilers chapter in RealView Compilation Tools v2.2 Compiler and Libraries Guide for full details of the effect of these values on software library selection at link time.

Obtaining a list of valid FPU names

You can obtain a list of valid FPU names by invoking the assembler with the following command:


armasm --fpu list

Copyright © 2002-2005 ARM Limited. All rights reserved.ARM DUI 0204F
Non-Confidential