Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 yagarto 的 arm-none-eabi 编译汇编代码,但它给出了消息
Error: bad instruction `a DCD 1,2,3'
当我使用 DCD 指令时
使用不合法吗?如果没有,我如何为 ARM 中的数据保留内存空间?
谢谢
该DCD指令用于 RealView 的汇编程序。如果您使用的是 GNU 汇编器,请尝试以下操作:
DCD
a: .word 1,2,3
请注意,您可能必须自己处理对齐(DCD自动对齐字边界上的数据 - 我不确定这样.word做)。
.word
您尝试这种方式 DCD 123 在这里 DCD 仅采用 Integer 32 bit wise