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.

[参考译文] TMS320F28066:不同的编译器相同的代码

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1219101/tms320f28066-different-compiler-same-code

器件型号:TMS320F28066

大家好、

合作者遇到问题需要您的帮助:

使用 CCS10.4 (编译器 V20.2.7)和 CCS6.1 (编译器 V6.4.2)编译相同的代码、比较其.map 文件会发现 v20.2.7编译器具有比编译器 v6.4.2更大的.text 段、大约大1k。 为什么会发生这种情况?

您能帮助检查这个问题吗?

谢谢。此致、

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

    尊敬的 Ben:

    两个版本的编译器相隔几年、因此必然会造成大小波动。  在本例中、除了我在此屏幕截图中看到的内容外、我对尺寸差异没有全面的了解。  用于构建每组代码的优化级别是什么?  针对性能进行优化的代码(或根本未进行优化)可能会有所不同、但会增加代码大小。

    谢谢。

    -艾伦