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.

[参考译文] 编译器/TMS320F2812:__TMS320C28x__与__TMS320C28XX__比较

Guru**** 2522770 points


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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/878949/compiler-tms320f2812-__tms320c28x__-vs-__tms320c28xx__

器件型号:TMS320F2812

工具/软件:TI C/C++编译器

Hallo、

用户可以在编译器(18.12.4、18.12.5)子版本中找到这两个宏。

  • _TMS320C28XX__可在以下位置找到:

.\include\math.h
.\lib\src\math.h
.\lib\src\s_cos.c
.\lib\src\s_cosf.c
.\lib\src\s_sin
.\lib\src\s_sinf.c
.\lib\src\s_tan.c
.\lib\src\s_tanf.c

  • _TMS320C28x__可在中找到:

.\include\_fmt_specifier.h
.\include\setjmp.h
.\include\stdint.h
.\lib\src\_fmt_specifier.h
.\lib\src\setjmp.h
.\lib\src\stdint.h

根据编译器文档 http://www.ti.com/lit/ug/spru514r/spru514r.pdf 、宏__TMS320C28XX__是预定义的。没有有关__TMS320C28x__的字

但是、我在 CCS 的"Console"选项卡中显示的编译器调用中看不到此宏。

我也无法在 Project -> Properties -> C2000 Compiler ->"Summary of flags set:"下看到它。

问题是:如何获取编译器和 CCS 生成的宏的完整列表?

大家好

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

    [引用 user="Maciej Drozd"]如何获取编译器和 CCS 生成的宏的完整列表?

    使用编译器选项--preproc_macros。  请在 C28x 编译器手册中搜索它

    谢谢、此致、

    乔治