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:我可以在 CMD 和 ASM 文件中使用宏定义吗

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1443940/tms570lc4357-can-i-use-a-macro-definition-in-both-cmd-and-asm-files

器件型号:TMS570LC4357

工具与软件:

同一宏定义能否用于替换 CMD 和 ASM 文件中的某些常量?

例如、在 TMS570中分配栈大小时:

我的朋友100

第200章我是谁

一个例子200

命令文件:
  stacks (RW): origin=(0x08000000) length=stacka + stackB + stackC  
Asmfile:
userSp  .word 0x08000000 + stacka
svcSp  .word 0x08000000+ stacka+stackB  
fiqSp  .word 0x08000000  + stacka+stackB +stackC  
我找不到任何关于 CMD 文件语法的文档。 此外、TMS570的汇编语法是否基于 SPNU118? 我们使用的编译器是 TI v20.2.7.LTS
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Dai:

    我可以轻松地将.h 文件包含在 liker cmd 文件中、如下所示:

    现在、我正在学习如何在.asm 文件中包含相同的.h 文件。 我使用以下应用手册尝试了几种方法、但现在都没有工作、如果我找到任何方法、会发布给您。

    ARM 汇编语言工具 v20.2.0.LTS 用户指南(修订版 Z)

    ——
    谢谢、此致、
    Jagadish。