在gcc编译器中,在汇编文件中,支持##宏定义的字符串拼接
如
#define ABC(mod,name) \
. global _##mod##_##name##_test
请问在asm文件中能否支持类似的操作?如果有怎么定义,谢谢
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.
在gcc编译器中,在汇编文件中,支持##宏定义的字符串拼接
如
#define ABC(mod,name) \
. global _##mod##_##name##_test
请问在asm文件中能否支持类似的操作?如果有怎么定义,谢谢
在汇编器中有.string伪指令可以定义字符串
如.string “mod", "name", "test”
具体请看下面的汇编手册。
.string/.cstring Initialize Text
https://www.ti.com/lit/ug/sprui03b/sprui03b.pdf