This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI C/C++ Compiler
Hi,
Our customer wants to know how to prevent 16 bit padding in the code as shown below.
struct {
unsigned short x;
unsigned long y;
unsigned short z;
unsigned long w;
} c = { 0x1234, 0x3456789a, 0xabcd, 0xcdef1234 };
Could you please help to get the answer to the request?
Regards,
Unfortunately, the C2000 compiler has no method for packing the members of a structure.
Thanks and regards,
-George