You copied the Doc URL to your clipboard.

ARM Compiler armclang Reference Guide : __attribute__((packed)) variable attribute

__attribute__((packed)) variable attribute

The packed variable attribute specifies that a structure field has the smallest possible alignment. That is, one byte for a variable field, and one bit for a bitfield, unless you specify a larger value with the aligned attribute.


    char a;
    int b __attribute__((packed));
} Variable_Attributes_packed_0;