Clang: now available from a SVN server near you!
Kai Wang
kaiwang27 at gmail.com
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 (http://llvm.org/cmds/llvm-ld.html) but "it
> > doesn't interact correctly with conventional nm/ar/etc"
> > (http://lists.cs.uiuc.edu/pipermail/cfe-dev/2009-June/005296.html).
>
> In what way does it not interact correctly?
llvm-ar manual page:
http://llvm.org/cmds/llvm-ar.html
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?
-Kai
More information about the freebsd-current
mailing list