在编写c6x汇编时希望使用cstruct声明结构体,使得在汇编中能使用C语言定义的结构体。
但是 .cstruct伪指令的出现问题
例如:
test1 .struct
count .word
count2 .word
test_len .endstruct
test2 .cstruct
count .word
count2 .word
test2_len .endstruct
.cstruct 出现 illegal mnemonic specified
并且认为 endstruct 没有对应的struct指令(Matching .struct directive is not present )
而 struct 声明的结构则没有这一问题
请问为何出现这一问题,难道 cstruct 不是正确的伪指令吗?