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.

CCS/TMS570LC4357: How to use #pragma PACK (4)

Part Number: TMS570LC4357

Tool/software: Code Composer Studio

Hello sir

I am using the CCS v7.3

I want to make the struct is 4-bytes alignment.

#pragma PACK (4);
struct test_a
{
char a;
short int b;
char d;
};

when I use the "#pragma  PACK  (4)", it show me a warning "unrecognized #pragma"

how to resolve it ?