-Xfloat


This option controls generating floating-point calculation instructions.

[Specification format]

-Xfloat=type

 

-

Interpretation when omitted

If the -Xcpu=g3m or -Xcpu=g3mh option is specified and the -Xcpu option is not specified, floating-point calculation instructions are generated.

If the -Xcpu=g3kh option is specified, floating-point calculation instructions are generated for single precision arithmetic and runtime function call instructions are generated for double precision arithmetic.

If the -Xcpu=g3k option is specified, runtime function call instructions are generated.

[Detailed description]

-

This option controls generating floating-point calculation instructions.

-

The items that can be specified as type are shown below.
An error will occur if any other item is specified.

soft

Generates runtime function call instructions for floating-point calculations.

Additionally, the FPU math support library will not be linked.

fpu

Generates floating-point calculation instructions of FPU (floating-point unit) for floating-point calculations.

Additionally, the FPU math support library will be linked.

However, if -Xcpu=g3kh is specified, generates runtime function call instructions for double precision arithmetic.

 

-

An error will occur if type is omitted.

-

If this option is specified together with the -Xcpu=g3k option, this option will be invalid and runtime function call instructions will always be generated.

-

If soft is specified as type, the -Xround=zero option will be invalid and -Xround=nearest will always be valid.

[Example of use]

-

To generate the jarl32 and jr32 instructions for function-call branches, describe as:

>ccrh -Xfloat=soft -Xcommon=rh850 main.c