Skip to main content

IAR Embedded Workbench for Arm 9.70.x

__big_endian

In this section:
Syntax

See Syntax for type attributes used on data objects.

Description

The __big_endian keyword is used for accessing a variable that is stored in the big-endian byte order regardless of what byte order the rest of the application uses. The __big_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
__big_endian long my_variable; 
See also

__little_endian.