-Xbit_order


This option specifies the order of bit-field members.

[Specification format]

-Xbit_order=pos

 

-

Interpretation when omitted

The bit-field members are allocated from the lower bit.

[Detailed description]

-

This option specifies the order of bit-field members.

-

The items that can be specified as pos are shown below.
An error will occur if any other item is specified.

left

The members are allocated from the upper bit.

right

The members are allocated from the lower bit.

 

-

An error will occur if pos is omitted.

-

If this option is specified when the order of bit-field members is specified by the #pragma directive in the C source, the value specified by this option is applied to all members until the first #pragma bit_order directive appears.
After that, the value of the #pragma directive is applied.

[Example of use]

-

To allocate the bit-field members from the upper bit, describe as:

>ccrh -Xbit_order=left -Xcommon=rh850 main.c