4.2.3 __packed Keyword

Specifies the data alignment of 1 for a data type.

Suggested Replacement

__attribute__((packed))

Caveats

None.

Examples

Consider migrating IAR code such as:

  1. __packed int packed_int;
  2. #pragma type_attribute=__packed 
    int packed_int;
to MPLAB XC codes similar to:
__attribute__((packed)) 

Further Information

None.