汇编器错误:指令错误
我遇到了这个错误
/tmp/ccK86fyk.s: Assembler messages:
/tmp/ccK86fyk.s:69: Error: bad instruction `sw $3,0(r3)'
/tmp/ccK86fyk.s:70: Error: bad instruction `sw $7,4(r3)'
(这个长代码的其余部分在此粘贴中。: http://pastebin.com/6YRx8rDh )
CPU是maemo fremantle构建的项目中的arm Cortex-A8。
那么好吧,我的汇编知识很少,一直在研究和学习 更多关于它的信息,但我似乎无法理解这个错误。 我也google了好几天了,没有找到具体的 回答我的问题。
这是包含导致错误的行的标头。: http://pastebin.com/k3D4cg0d
(提供有关评论的更多信息,因为我不能发布超过 2 个链接)
I've run into this error
/tmp/ccK86fyk.s: Assembler messages:
/tmp/ccK86fyk.s:69: Error: bad instruction `sw $3,0(r3)'
/tmp/ccK86fyk.s:70: Error: bad instruction `sw $7,4(r3)'
( The rest of this long code is in this paste.: http://pastebin.com/6YRx8rDh )
The CPU is an arm Cortex-A8 in a project built in maemo fremantle.
So well, I have little assembly knowledge, and I've been studying it and learning
a bit more about it, but I can't seem to understand this error.
I've also researched thoughout google for a few days now, and I can't find a concrete
answer to my problem.
This is the header that has the lines that results in errors.: http://pastebin.com/k3D4cg0d
( Provided more informations on a comment, since I cannot post more than 2 links )
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
SW和LW是MIPS架构的操作码(加载字和存储字)。
您不能将此汇编代码与 Cortex A8 一起使用。
PS:抱歉,我之前说过这是Aarch64指令。我错了...
SW and LW are opcode for MIPS architecture (Load word et Store Word).
You can't use this Assembly code with a Cortex A8.
PS: Sorry, I previously said that it was Aarch64 instruction. I was wrong...
我在使用“arm-none-linux-gnueabi-gcc version 4.5.1”编译内核时遇到了这个问题,并使用“arm-none-linux-gnueabi-gcc version 4.8.3”修复它
I met this problem when use "arm-none-linux-gnueabi-gcc version 4.5.1" compile the kernel, and fix it by using "arm-none-linux-gnueabi-gcc version 4.8.3"