工具/软件:TI C/C++编译器
定制硬件上的 OMAP-L138B-EP
Code Composer Studio v6.1.2
C6000代码生成工具 v7.4.14
C++应用程序
优化级别2
PC:
Windows 10 Enterprise v1809
英特尔 i7
32 GB
我正在尝试集成同事的一些代码。 此代码会移动大量数据。 当前争议的核心 C++方法使用 switch 语句、其中包含大约3000个 case 语句。 (我承认我们可能需要重新思考 C++方法。)
当我尝试使用 C6000 CGTv7.4.14在 CCSv6.1.2中构建应用程序时、优化器会异常终止。
我们在隔离式网络上开发软件。 因此、我必须手动将我看到的内容键入到该表单中。
我看到的消息如下所示:
错误-内存不足-优化器在中中止
优化器在功能中异常终止
文件中
.cpp
编译失败
gmaking[1]:***[ ] Error 1
gmake[1]: Target 'main-build' not remade because of errors.
gmake: *** [all] Error 2
There are a few things I will try shortly:
- Reduce optimization level for the file with large switch statement
- Optimization level 1
- Optimization level 0
- Optimization off
- Try C6000 CGT v7.4.24 (Our application does not build with C6000 CGT v8.x. We have not needed to use C6000 CGT v8.x so far.)
- Try CCSv8.3.0 (It is the newest version available on our isolated network)
Any other suggestions?
Thanks in advance for guidance.
PJ