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.

TMS320F280049: 数据结构体对齐指令(#pragma pack(n)试过的#pragma pack(n)不识别pragma指令,__attribute__((packed)) __attribute__((aligned(n)))不好使)

Part Number: TMS320F280049

typedef struct DataEnding
{//串口通讯
uint32_t CrcValue;
uint16_t Mark;
}RxTxDataEndingType;

在求 sizeof(RxTxDataEndingType)时显示的是4   求对齐指令使sizeof(RxTxDataEndingType)时显示的是3