Skip to main content

IAR Embedded Workbench for RX 5.20

--reversed_bitfields

In this section:
Syntax
--reversed_bitfields
Description

Use this option to enable the bitfield allocation strategy Reverse disjoint types. This places bitfield members from the most significant bit to the least significant bit in the container type. Storage containers of bitfields will not overlap other structure members. (By default, the compiler uses the allocation strategy Disjoint types, where bitfield members are placed from the least significant bit to the most significant bit in the container type.)

This option cannot be used together with the option --joined_bitfields.

See also

Bitfields.

Caution

To set this option, use Project>Options>C/C++ Compiler>Extra Options.