这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » [求助]关于arm交叉编译的奇怪问题,请高手指点!

共1条 1/1 1 跳转至

[求助]关于arm交叉编译的奇怪问题,请高手指点!

菜鸟
2004-09-25 17:33:20     打赏

宿主机用red hat9系统。安装了交叉编译工具链后却无法进行编译。

我编译的源文件如下: #include<stdio.h> int main() { printf("helloworld!\n"); return 0; } 这段代码用gcc编译没有任何问题,但是用arm_linux_gcc出现以下错误提示: /tmp/cci0sUSC.s: Assembler messages: /tmp/cci0sUSC.s:1: Warning: rest of line ignored; first ignored character is `@' /tmp/cci0sUSC.s:13: Warning: rest of line ignored; first ignored character is `@' /tmp/cci0sUSC.s:14: Warning: rest of line ignored; first ignored character is `@' /tmp/cci0sUSC.s:15: Error: too many memory references for `mov' /tmp/cci0sUSC.s:16: Error: no such instruction: `stmfd sp!,{fp,ip,lr,pc}' /tmp/cci0sUSC.s:17: Error: too many memory references for `sub' /tmp/cci0sUSC.s:18: Error: no such instruction: `ldr r0,.L3' /tmp/cci0sUSC.s:19: Error: no such instruction: `bl printf' /tmp/cci0sUSC.s:20: Error: expecting operand after ','; got nothing /tmp/cci0sUSC.s:21: Error: no such instruction: `b .L2' /tmp/cci0sUSC.s:27: Error: no such instruction: `ldmea fp,{fp,sp,pc}' 应该是写汇编指令方面的错误,我想请教一下这是什么原因?

[em11]



关键词: 求助     关于     交叉     编译     奇怪     问题     高手     指点     c    

共1条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]