5.7.1.9 Float-abi Option

The -mfloat-abi=name option specifies which floating-point ABI to use. Permissible values are: soft, softfp and hard.

Specifying soft as the argument causes XC32 to generate output containing library calls for floating-point operations. The softfp argument allows the generation of code using hardware floating-point instructions, but still uses the soft-float calling conventions. The hard argument allows generation of floating-point instructions and uses FPU-specific calling conventions.

The default depends on the specific target configuration. Note that the hard-float and soft-float ABIs are not link-compatible; you must compile your entire program with the same ABI, and link with a compatible set of libraries.