Hello,
I want to use the #pragma STRUCT_ALIGN to allign a struct on a C6618.
suppose I use this code:
typedef struct alligned_struct
{
uint8_t tag;
uint8_t value;
} alligned;
#pragma STRUCT_ALIGN (alligned_struct, 2);
#pragma STRUCT_ALIGN (alligned, 2);
This struct require 2 byte, in fact the sizeof(alligned)=2.
With the pragma I expect that the struct will be alligned on 2 byte boundary, so the sizeof(alligned) should be 4, but I always get a sizeof()=2.