如何关掉LLVM的综合汇编? [英] How to switch off LLVM's integrated assembler?
问题描述
我有涉及手写装配AT&放一个项目; T语法,做工精细与海湾合作委员会,而不是由我做再加上我不是很了解装配其试图与Clang的建立它的时候表现出奇怪的问题<。 / p>
LLVM文档提到,大多数X86指标使用LLVM的集成组装,而不是制度汇编;作为一个可能的解决方法,我想明确地使用了后者。我(当然,谷歌)都没有成功找到关于如何做到这一点的信息。
问:有没有办法询问或者说强制锵/ LLVM使用该系统,而不是汇编综合之一
(我知道我随时可以去阅读源™,但我想知道是否有一个成文规定。)
原来我彻底无缘本手册页:
- 集成 - 为
-no集成,如
用于启用和禁用,分别使用集成汇编的。无论是集成组装是在默认情况下为目标而定。
块引用>要在编译器调用禁用:
铛-no集成,为-c foo.c的
或者
出口CC =铛 - 没有集成,为
使I have a project involving hand-written assembly—AT&T syntax, works fine with GCC, but not done by me plus I know very little about assembly—which exhibits a weird problem when trying to build it with Clang.
LLVM documentation mentions that "most X86 targets" use LLVM's integrated assembler as opposed to the system assembler; as a possible workaround I would like to explicitly use the latter. I (well, Google) haven't been successful in finding information on how to do this.
Question: Is there a way to ask or rather force Clang / LLVM to use the system assembler instead of the integrated one?
(I know I could always go and Read The Source™, but I want to know whether there's a documented approach.)
解决方案Turns out I completely missed this in the man page:
-integrated-as
-no-integrated-as
Used to enable and disable, respectively, the use of the integrated assembler. Whether the integrated assembler is on by default is target dependent.
To disable it at compiler invocation:
clang -no-integrated-as -c foo.c
Or:
export CC="clang -no-integrated-as" make
这篇关于如何关掉LLVM的综合汇编?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!