Previous: , Up: Type Attributes   [Contents][Index]


6.33.6 x86 Type Attributes

Two attributes are currently defined for x86 configurations: ms_struct and gcc_struct.

ms_struct
gcc_struct

If packed is used on a structure, or if bit-fields are used it may be that the Microsoft ABI packs them differently than GCC normally packs them. Particularly when moving packed data between functions compiled with GCC and the native Microsoft compiler (either via function call or as data in a file), it may be necessary to access either format.

Currently -m[no-]ms-bitfields is provided for the Microsoft Windows x86 compilers to match the native Microsoft compiler.