问题描述
我尝试组装一个例子
test.s:
.file "test.c"
.text
.globl f
.type f,@function
f:
.LFB0:
.cfi_startproc
movl $"A,B",%eax
ret
.cfi_endproc
.LFE0:
.size f,.-f
.comm "A,4,4
.ident "GCC: (GNU) 7.3.0"
.section .note.GNU-stack,"",@progbits
$ binutils-2.35/bin/as test.s
test.x86.s: Assembler messages:
test.x86.s:8: Warning: missing closing '"'
test.x86.s:8: Warning: missing closing '"'
test.x86.s:8: Error: too many memory references for `mov'
$ clang-9 -c test.s ; echo $?
0
为什么clang-9可以进行组装测试而gnu-as不能呢?
P.S。基本上,测试是通过python / numba / llvmlite llvm-IR创建的(由于llvm的优化?)。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)