The packed variable attribute (IBM extension)

The variable attribute packed allows you to override the default alignment mode, to reduce the alignment for all members of an aggregate, or selected members of an aggregate to the smallest possible alignment: one byte for a member and one bit for a bit field member.

Read syntax diagramSkip visual syntax diagram
packed variable attribute syntax

>>-__attribute__--((--+-packed-----+--))-----------------------><
                      '-__packed__-'       



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us