| |||
| Home > Compiler-specific Features > Variable attributes > __attribute__((packed)) | |||
The packed variable attribute specifies
that a variable or structure field has the smallest possible alignment.
That is, one byte for a variable, and one bit for a field, unless
you specify a larger value with the aligned attribute.
This variable attribute is a GNU compiler extension that is supported by the ARM compiler.
The __packed qualifier and unaligned accesses to data in the Compiler User Guide
__packed structures versus individually __packed fields in the Compiler User Guide.