You copied the Doc URL to your clipboard.

Arm Compiler armclang Reference Guide : -mfloat-abi

-mfloat-abi

Specifies whether to use hardware instructions or software library functions for floating-point operations, and which registers are used to pass floating-point parameters and return values.

Syntax

-mfloat-abi=value

Where value is one of:

soft
Software library functions for floating-point operations and software floating-point linkage.
softfp
Hardware floating-point instructions and software floating-point linkage.
hard
Hardware floating-point instructions and hardware floating-point linkage.

Note

The -mfloat-abi option is not valid with AArch64 targets. AArch64 targets use hardware floating-point instructions and hardware floating-point linkage. However, you can prevent the use of floating-point instructions or floating-point registers for AArch64 targets with the -mcpu=name+nofp+nosimd option. Subsequent use of floating-point data types in this mode is unsupported.

Note

In AArch32 state, if you specify -mfloat-abi=soft, then specifying the -mfpu option does not have an effect.

Default

The default for --target=arm-arm-none-eabi is softfp.

Was this page helpful? Yes No