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.

[参考译文] 编译器/TMS320F280049:TI C/C++解析器中存在缺陷

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/890633/compiler-tms320f280049-defect-in-the-ti-c-c-parser

器件型号:TMS320F280049

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

当我通过.cla 文件中的函数指针调用函数时、我会收到此错误、该函数在结构中定义。 函数指针已在 main()中指定函数的地址。

使用 C2000文件夹中的示例代码。

生成文件:"./cla_ex1_background_task_cla.cla"
调用:C2000编译器
"C:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.1.LTS/bin/cl2000 /ti/c2000/C2000Ware_2_00_00_03/device_support/f28004x/common/include /ti/c2000/C2000Ware_2_00_00_03/device_support/f28004x/headers/include -v28 -ml -mt --cla_support=cla2 -float_support=fpu32 -tmu_support=tmu0 -vcu_support=vcu-off-include_background_cla=/Users/RND17/Desktop/cla_ex1_background_task -board_background_excla_background-boards\cla_background-boards=cla_background_excla=cla_background-boards\cla_background_excla=cla_background-boards\contine_background-boards\cla_background_track_boards\cla_background-boards\continu_boards\cla_background-boards\cla_background-boards\continu.cla_background-boards\continu.cla

:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.1.LTS/include -boards\cla_background_boards\cla_background-boards\continu_boards\continu_boards\continu_board.cla=


accla.exe
当处理函数(未知或文件范围)文件(未知)行0时

、这是由 TI C/C++解析器中的缺陷引起的。
TI 客户支持可能会建议解决方法来避免这种情况。

升级到编译器的最新版本可能会解决此问题。

在 E2E 支持论坛中联系 TI、网址为 http://e2e.ti.com
的"Development Tools"、"TI C/C++ Compiler"下。 请参阅标题
为"提交问题"的链接。

我们需要看到整个错误消息和完整、可重现
的测试案例、包括所有命令行选项。
包含由选项--preproc_with_comment 创建的.pp 文件 
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    为了重现问题、我希望有一个测试案例。  对于源文件 cla_ex1_background_task_cla.cla、请按照文章 How to Submit a Compiler Test Case中的说明进行操作。

    同时... 您使用的编译器已使用2年。  较新的版本可能对此问题有修复方法。  请使用 CCS 菜单选择 Help | Check for Updates 进行更新。

    谢谢、此致、

    乔治