Rafael Espíndola
2013-Oct-17 17:22 UTC
[LLVMdev] Feature request for include llvm-mc in llvm.org/builds
> Clang can be used like an assembler in the sense that if it's fed a .s > file, it will assemble it. (I noted that clang-cl doesn't do this for > .asm files, I should fix that.) > > I'm not sure that we want to include llvm-mc in the installer. Is it > really intended to be used as an assembler by the end user? The help > text says "llvm machine code playground", which seems to indicate it's > more of an internal tool.I agree. Using the clang binary is the supported public interface for using the integrated assembler. Cheers, Rafael
Jim Grosbach
2013-Oct-17 22:54 UTC
[LLVMdev] Feature request for include llvm-mc in llvm.org/builds
On Oct 17, 2013, at 10:22 AM, Rafael Espíndola <rafael.espindola at gmail.com> wrote:>> Clang can be used like an assembler in the sense that if it's fed a .s >> file, it will assemble it. (I noted that clang-cl doesn't do this for >> .asm files, I should fix that.) >> >> I'm not sure that we want to include llvm-mc in the installer. Is it >> really intended to be used as an assembler by the end user? The help >> text says "llvm machine code playground", which seems to indicate it's >> more of an internal tool. > > I agree. Using the clang binary is the supported public interface for > using the integrated assembler.Yes. It’s not intended for end users at all.> > Cheers, > Rafael > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
罗勇刚(Yonggang Luo)
2013-Oct-19 10:01 UTC
[LLVMdev] Feature request for include llvm-mc in llvm.org/builds
I found that access llvm-mc from clang driver is impossible, and I want to use llvm-mc to compile assembly files, how to do that? H:\CI\bld\compilers\musl\src\math\i386>clang -c -v --target=i686-pc-mingw sqrt.s clang version 3.4 (trunk) Target: i686-pc-mingw Thread model: posix Selected GCC installation: "gcc" -v -c -m32 -o sqrt.o -x assembler sqrt.s clang.exe: error: unable to execute command: program not executable clang.exe: error: assembler (via gcc) command failed with exit code 1 (use -v to see invocation) 2013/10/18 Jim Grosbach <grosbach at apple.com>:> > On Oct 17, 2013, at 10:22 AM, Rafael Espíndola <rafael.espindola at gmail.com> wrote: > >>> Clang can be used like an assembler in the sense that if it's fed a .s >>> file, it will assemble it. (I noted that clang-cl doesn't do this for >>> .asm files, I should fix that.) >>> >>> I'm not sure that we want to include llvm-mc in the installer. Is it >>> really intended to be used as an assembler by the end user? The help >>> text says "llvm machine code playground", which seems to indicate it's >>> more of an internal tool. >> >> I agree. Using the clang binary is the supported public interface for >> using the integrated assembler. > > Yes. It’s not intended for end users at all. > >> >> Cheers, >> Rafael >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo
Possibly Parallel Threads
- [LLVMdev] Feature request for include llvm-mc in llvm.org/builds
- [LLVMdev] Feature request for include llvm-mc in llvm.org/builds
- [LLVMdev] Feature request for include llvm-mc in llvm.org/builds
- [LLVMdev] How to use clang -intergrated-as to compile cross-(os/target) assembly file.
- [LLVMdev] How to use clang -intergrated-as to compile cross-(os/target) assembly file.