如何解决llvm-as和binutils-as之间的区别,变量的命名
我尝试组装一个例子
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 举报,一经查实,本站将立刻删除。