[LLVMdev] "clang -v" shows a GCC call

Chris Lattner clattner at apple.com
Tue Apr 27 09:46:39 PDT 2010


On Apr 27, 2010, at 8:54 AM, Swiss Guy wrote:

> 
> Thanks for your really fast answer.
> 
> I understood that, but this means that the llvm+Clang suite is not able to
> create a machine binary file without any intervention of GCC ?
> 
> I thought it could.

There are two answers.  1) we're in the process of building a new llvm-native assembler.  When this is done, LLVM will be able to produce .o files without any other tools.   2) clang can talk directly to a system assembler if you teach it how to (by defining a "ToolChain" for your platform).  In the absence of that, it uses GCC as an abstraction layer to make it more portable.

In the short term, I'd recommend adding a clang toolchain description for your target.  This is pretty easy to do, ask on the cfe-dev list for more details.

-Chris





More information about the llvm-dev mailing list