Other Parts Discussed in Thread: C2000WARE
主题中讨论的其他器件:C2000WARE
(笑声)
您好、专家、
我的客户希望对 C28内核上的结构执行字对齐、这可以由 ARM 内核上的#pragma Pack 轻松使用。
例如:
typedef 结构
{
int test1;
长 test2;
int test3;
int test4;
}测试;
test1将占用32位、如下所示、是否有与16位大小对齐的方法? 它似乎#pragma Pack 不适用于 C28。 还有其他方法吗?
