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.

[参考译文] TMS570LC4357:迁移到 Clang -由条件汇编指令发出

Guru**** 2455560 points
Other Parts Discussed in Thread: TMS570LC4357

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1211279/tms570lc4357-migration-to-clang---issue-with-conditional-assembly-directives

器件型号:TMS570LC4357

大家好、我们正与 TMS570LC4357 MCU 合作、其中包含一个迁移到 TI Clang v3.0.STS 的项目。 我正在尝试使用条件汇编、并在 TI 安全库中看到了该文件、我们也在使用该库:

然而,在测试后(通过对指令重新编号以引起一个错误),似乎表达式$$isdefed 返回0。 如指令所述、_vfp_support_在工程的预定义符号中进行定义。 然后、我在 Clang 迁移指南中发现了这一点:

但是、当尝试使用.ifdef 时、会发生以下情况: