Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jun 2009 07:25:55 +0200
From:      Kai Wang <kaiwang27@gmail.com>
To:        Tim Kientzle <kientzle@freebsd.org>
Cc:        Ed Schouten <ed@80386.nl>, hackers@freebsd.org, current@freebsd.org, Erik Cederstrand <erik@cederstrand.dk>
Subject:   Re: Clang: now available from a SVN server near you!
Message-ID:  <20090607052555.GA2154@viskning>
In-Reply-To: <4A27F105.4040109@freebsd.org>
References:  <20090604093831.GE48776@hoeg.nl> <31BD4D08-6558-46FF-9B93-CF8249AAC461@cederstrand.dk> <4A27F105.4040109@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090607052555.GA2154>