宿主机用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]