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.

[参考译文] TMS320F280039C:如何在 C2000代码中实现#pragma pack (1)

Guru**** 2798555 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1367871/tms320f280039c-how-to-realize-the-pragma-pack-1-in-c2000-code

器件型号:TMS320F280039C

工具与软件:

团队成员

客户希望使用 Uint_16格式对齐结构变量、例如 #pragma pack (1)的函数。

我搜索过此帖子、答案是 TI_clang 不支持。

我的问题是:

1.此问题是否有任何更新? 因为现有员额近10年。

2.是否有任何变通办法,我们可以通过其他指令实现这个功能?

谢谢、此致

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    不幸的是,什么都没有改变。  C2000编译器不支持 #pragma 软件包 。  这是不可能改变的。

    谢谢。此致、

    -乔治