请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TMS320F28388D 您好!
我继续切换到 TI Clang 编译器。 我们有 C2000内核和 ARM 内核之间共享的文件。 目前、我们使用__TI_ARM__预定义的宏命令来区分必须不同的部分。 显然、新 编译器中不存在该文件。 Clang 编译器中是否有它的等效项?
谢谢!
据
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.
您好!
我继续切换到 TI Clang 编译器。 我们有 C2000内核和 ARM 内核之间共享的文件。 目前、我们使用__TI_ARM__预定义的宏命令来区分必须不同的部分。 显然、新 编译器中不存在该文件。 Clang 编译器中是否有它的等效项?
谢谢!
据
使用类似于...的代码
#if defined(__TMS320C28XX__) /* C2000 compiler */ #elif defined(__TI_ARM__) /* TI Arm compiler */ #elif defined(__arm__) /* tiarmclang compiler */ #else #error Unrecognized compiler!!! #endif
对于 蒂亚姆克朗 详细信息、请参阅 tiarmclang 在线手册中其他 Arm 专用的预定义宏符号部分。
我要继续切换到 TI Clang 编译器。
有关此主题的一般文档、请参阅 同一在线手册中的 armcl 到 tiarmclang 迁移指南部分。
谢谢。此致、
-乔治
是否 有这些版本的 pdf 版本?
可以。 在 tiarmclang 在线手册的首页底部有一个指向它的链接。
谢谢。此致、
-乔治