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 文件-基于 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 以更正文档。
谢谢,此致,
乔治