Skip to main content

IAR Embedded Workbench for Arm 9.70.x

__little_endian

In this section:
Syntax

See Syntax for type attributes used on data objects.

Description

The __little_endian keyword is used for accessing a variable that is stored in the little-endian byte order regardless of what byte order the rest of the application uses. The __little_endian keyword is available when you compile for Armv6 or higher. It cannot be used in 64-bit mode.

Note

If this keyword is used with a pointer, that pointer will not be compatible with pointers that do not have a __big_endian or __little_endian attribute.

Example
__little_endian long my_variable; 
See also

__big_endian.