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 (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...