7.3.17 Floating-Point Sizes
Under the CCI, floating-point types must not be smaller than 32 bits in size.
Example
The following shows the definition for outY
, which is at least
32-bit
in size.
float outY;
Differences
The MPLAB XC8 when targeting PIC MCUs and building with C90 language standard has allowed
the use of 24-bit float
and double
types.
Migration to the CCI
When using MPLAB XC8, the float
and double
type will be
made
32
bits in size once the CCI is enabled, regardless of target device or operating mode.
Review any source code that assumes a float
or double
type is 24 bits in size.
No migration is required for other compilers.