Clang: now available from a SVN server near you!

Kai Wang kaiwang27 at
Sun Jun 7 05:57:31 UTC 2009

On Thu, Jun 04, 2009 at 09:06:29AM -0700, Tim Kientzle wrote:
> Erik Cederstrand wrote:
> > 
> > LLVM provides a linker ( but "it 
> > doesn't interact correctly with conventional nm/ar/etc" 
> > ( 
> In what way does it not interact correctly?

llvm-ar manual page:

I think the major difference is that llvm-ar is aimed for bitcode (.bc)
files, same as other llvm-xxx tools. (for example, llvm-ld)

Other that that, llvm-ar uses a different symbol table, a different
compression solution. (llvm-ar compresses each member separately, not
the entire archive, this is probably better wrt random access of
members?).  llvm-ar also has a handy -R option which we should
probably add to our ar(1).

And from what I read in the wiki, it looks like llvm-ld can be used as
long as --emit-llvm is specified when compiling?


More information about the freebsd-current mailing list