Keil™, An ARM® Company

CARM User's Guide

Discontinued

float Scalars

Scalars of type float are stored using four bytes (32-bits) following the IEEE-754 standard. They are stored in little endian (default) or big endian (if the BIGENDIAN compiler directive is specified).

Little Endian (default)

When configured for little endian, the low-order byte is stored first, followed by the high-order byte. For example, an integer value of 0x12345678 is stored in memory as follows:

Address Offset+0+1+2+3
Contents0x780x560x340x12

Big Endian

When configured for big endian, the high-order byte is stored first, followed by the low-order byte. For example, an integer value of 0x12345678 is stored in memory as follows:

Address Offset+0+1+2+3
Contents0x120x340x560x78