LLVM-C headers: create native library

Hi,

Is it possible to create a .dll / .so / .dylib by only using the LLVM-C headers ?
If so, I cannot find it.

Filip

Aside from using the C API, you cannot create dynamic libraries with
LLVM. For that you need a linker. LLVM generates assembly files (.s)
and very soon it will generate object files natively (.o).

The clang driver generally uses an installed gcc to do the assemble
and link steps at the moment.

Reid

The clang driver generally uses an installed gcc to do the assemble
and link steps at the moment.

gcc? I thought it uses binutils.

Eugene

It does. But clang uses the gcc driver to invoke the binutils tools
anyway. Presumably it's easier that way.

Reid

The gcc driver that runs whatever is appropriate for the system.

-eric

I see. I assumed it runs binutils directly.

Eugene

Thank you,

Now I got some more information for the LLVM-C tutorial I am writing...

Filip

It only does this when there isn't a clang "ToolChain" description for the target. On the mac, clang doesn't go through gcc to run the assembler.

-Chris