Keil™, An ARM® Company

CARM User's Guide

Discontinued

Byte Order

The ARM core can store data in either little-endian or big-endian byte order. Some ARM-based devices allow you to specify which byte order you prefer. Other devices are preconfigured to support only one byte order (typically little-endian). The Keil development tools may be configured for little-endian or big-endian byte order using the BIGENDIAN directive.

  • Little-Endian Configuration: The least significant byte is stored at the lowest address in memory. The most significant byte is stored at the highest address.
  • Big-Endian Configuration: The least significant byte is stored at the highest address in memory. The most significant byte is stored at the lowest address.