Hi,
My system includes two different processors, which shares some memory. Each processor runs code generated by two absolutely different development environments. In order to allow data sharing between two processors I would like to force 1 byte alignment of common data structures (on both sides).
typedef struct
{
unsigned char Ch;
unsigned int Int;
unsigned short Sh;
} MyStructType;
MyStructType S1;
As result of compiler padding sizeof(S1) is 12 bytes.
I tried two pragma directives:
1. #pragma STRUCT_ALIGN(MyStructType, 1)
2. #pragma DATA_ALIGN(S1, 1)
But sizeof(S1) remains 12 (I expect to get 7)
Platform description:
Development environment: CCS 3.3
Target DSP: DM6435
Thanks in advance,
Alex.