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.

[参考译文] CCS:如何在 lnk.cmd 中更改堆大小

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/880025/ccs-how-to-change-heap-size-in-lnk-cmd

工具/软件:Code Composer Studio

您好、TI、

我现在在 CCS + JTAG 模式下调试 C66 DSP 代码

我使用 CCS 编译代码

这个 CCS 项目中有一个 lnk.cmd

并且"-heap 0x8000"被写入 lnk.cmd 中

我直接将堆大小更改为"-heap 0x80000"、程序无法正常运行

如果我想更改堆大小、应该怎么办?

非常感谢

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

    链接器从命令行和命令文件(如 lnk.cmd)中收集-heap 等选项。  如果多次指定-heap、最后一个将生效。  确保链接器恰好看到-heap 一次、然后将其设置为所需的大小。

    谢谢、此致、

    乔治