Skip to main content

IAR Embedded Workbench for Arm 9.70.x

‑‑fpu

In this section:
Syntax
‑‑fpu={name|list|none}
Parameters

name

The target FPU architecture.

list

Lists all supported values for the ‑‑fpu option.

none (default)

No FPU.

Description

Use this option to generate code that performs floating-point operations using a Floating Point Unit (FPU). By selecting an FPU, you will override the use of the software floating-point library for all supported floating-point operations.

The name of a target FPU is constructed in one of these ways:

  • none: No FPU (default)

  • fp-architecture: Base variant of the specified architecture

  • fp-architecture-SP: Single-precision variant

  • fp-architecture_D16: Variant with 16 D registers

  • fp_architecture_Fp16: Variant with half-precision extensions

The available combinations include:

  • {VFPv2|VFPv3|VFPv4|VFPv5}

  • {VFPv3|VFPv4|VFPv5}_D16

  • {VFPv4|VFPv5}-SP

  • VFPv3_Fp16

  • VFPv3_D16_Fp16

Note

In 64-bit mode, and when a 64-bit device is used in 32-bit mode, this option has no effect.

See also

VFP and floating-point arithmetic.

Caution

Project>Options>General Options>32-bit>Floating-point settings