3.29 __attribute__((packed)) variable attribute

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


    char a;
    int b __attribute__((packed));
} Variable_Attributes_packed_0;
Related reference
3.27 __attribute__((aligned)) variable attribute
Non-ConfidentialPDF file icon PDF versionARM DUI0774E
Copyright © 2014-2016 ARM. All rights reserved.