Technical Support
On-Line Manuals
Compiler Reference Guide
__attribute((packed))
The packed type attribute specifies that a type must have the smallest possible alignment.
packed
This type attribute is a GNU compiler extension that is supported by the ARM compiler.
The compiler generates a warning message if you use this attribute in a typedef.
typedef
__packed
#pragma pack(n)
Packed structures
The __packed qualifier and unaligned data access in C and C++ code in Using the Compiler
Detailed comparison of an unpacked struct, a __packed struct, and a struct with individually __packed fields in Using the Compiler.