Tool/software:
Hi Champ,
I am asking for my customer.
The compiler will automatically putting 0 for data alignment when the structure variables are declared in the following way, it makes the structure multiples of 4Byte all the time.
Is there a way so that the variables are placed consecutively, and do not automatically putting 0 to make it for 4Byte?
typedef struct _test
{
unsigned char a ; // 2 bytes
unsigned int b; // 4 bytes
} test ;
Thanks and regards,
Johnny