Everything

-dbl_size


< Compile Options / Microcontroller Options >

[Format]

-dbl_size={ 4 | 8 }

 

-

[Default]

The default for this option is dbl_size=8 when the -dpfpu option is specified. Otherwise, it is dbl_size=4.

[Description]

-

This option controls how the double type and long double type are handled.
When dbl_size=4 is specified, they are handled as the single-precision floating-point type.
When dbl_size=8 is specified, they are handled as the double-precision floating-point type.

[Remarks]

-

When -dbl_size=4 is selected, among the standard functions, the mathf.h and math.h functions having the same specifications as each other (e.g., sqrtf and sqrt) are integrated to configure a standard library. Because of this, phenomena, such as the following example will occur when -dbl_size=4 is selected. When the RX simulator or emulator traces (single-step execution) the calling of sqrtf which is a mathf.h header function, it appears as if not sqrtf but sqrt, which is a math.h header function with the same specifications, has been called.