Keil™, An ARM® Company

CARM User's Guide

Discontinued

8-Byte Scalars

Scalars of type

  • signed long long
  • and unsigned long long

are stored using eight bytes (64 bits) 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 0x123456789ABCDEF0 is stored in memory as follows:

Address Offset+0+1+2+3+4+5+6+7
Contents0xF00xDE0xBC0x9A0x780x560x340x12

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+4+5+6+7
Contents0x120x340x560x780x9A0xBC0xDE0xF0