-fpack-struct (-qalign)

Purpose

Specifies the alignment of data objects in storage, which avoids performance problems with misaligned data.

Syntax

Read syntax diagramSkip visual syntax diagram
>>- -fpack-struct----------------------------------------------><

Read syntax diagramSkip visual syntax diagram
               .-=linuxppc---.   
>>- -q--align--+-=bit_packed-+---------------------------------><

Defaults

-qalign=linuxppc

Parameters

bit_packed
Bit field data is packed on a bitwise basis without respect to byte boundaries.
linuxppc
Uses GNU C/C++ alignment rules to maintain binary compatibility with GNU C/C++ objects.

Usage

If you use the -fpack-struct (-qalign=bit_packed) or -qalign=linuxppc option more than once on the command line, the last alignment rule specified applies to the file.

Note: When using -fpack-struct (-qalign=bit_packed) or -qalign=linuxppc , all system headers are also compiled with -fpack-struct (-qalign=bit_packed) or -qalign=linuxppc . For a complete explanation of the option as well as usage considerations, see Aligning data.

Predefined macros

None.



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