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.

[参考译文] TMS570LC4357:TI ARM CGT 链接器:如何在其他 cmd 文件中包括 cmd 文件

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1081834/tms570lc4357-ti-arm-cgt-linker-how-to-include-cmd-file-in-other-cmd-file

部件号:TMS570LC4357

我被告知在这里提问,因此我重复了这个问题(TMS570LC4357:TI ARM CGT 链接器:如何在其他 cmd 文件中包括 cmd 文件-基于 ARM 的微控制器论坛-基于 ARM 的微控制器- TI E2E 支持论坛)。

您好,

如何在另一个 cmd 文件中包含 cmd 文件?

例如,有一个文件“some /path/a.cmd”和一个文件“other /path/b.cmd”。

我想用“b.cmd”编写

#include "a.cmd"
// or something similar to achieve the same

如何实现这一点?

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

    使用#include,就像您在上面的示例中所做的那样。  调用链接器...

    armcl --include_path=some / path --run_linker  与以前相同

    请注意--include_path (或-i 表示短)是如何先于--run_linker (或-z 表示短)的。

    有关详细信息, 请在 TI ARM 汇编工具手册中搜索 标题为 “链接器命令文件预处理”的子章节。  遗憾的是,文档中存在错误。  如何指定 include 文件的路径的描述错误。  请按照我在本帖子中的描述进行操作。  我提交了条目 EXT_EP-10757 以更正文档。

    谢谢,此致,

    乔治