From owner-freebsd-current@FreeBSD.ORG Sun Jun 7 05:57:30 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F1811065670; Sun, 7 Jun 2009 05:57:30 +0000 (UTC) (envelope-from kaiwang27@gmail.com) Received: from mail-ew0-f212.google.com (mail-ew0-f212.google.com [209.85.219.212]) by mx1.freebsd.org (Postfix) with ESMTP id BB3AC8FC18; Sun, 7 Jun 2009 05:57:29 +0000 (UTC) (envelope-from kaiwang27@gmail.com) Received: by ewy8 with SMTP id 8so3236937ewy.43 for ; Sat, 06 Jun 2009 22:57:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received :x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=kSS1SWucJ/sdxDPBjFdq+v/fc/Y8srbUmesx+sqPEpY=; b=l/CgXTNUA+BY839zKpn15OMG1IFRYyHvrr0OBBSt+n/S1mVD6qteMOh1uXY6WdTdLf HRSD2ls5tIK8Twi/opvKFI6vs6KV3jslW7X6IZhxJWSE3k0pcJOTy+26ezLXuIv6QaYB vsiwZ1WwY6qci02jCXIwrhQ0CSWHGPQm+PSK0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; b=Qcb0nigzuHT5dZQj9HLbbW4eeqLbbw7HIIur8dX+1eIVmhXgCv2qv7UEtW6c/Yzdhn 8BMd92PIqPlAnFC2RGMldT7u5ugVNL1mDN7LGfxQwi9Mqjwh8qyD/QVLhkipr+eL0pZ2 hLtq6mRunjubJqbk7T4AzWZJfqvXNrlmVWB4k= Received: by 10.216.29.201 with SMTP id i51mr1794844wea.214.1244352394206; Sat, 06 Jun 2009 22:26:34 -0700 (PDT) Received: from localhost ([212.209.91.47]) by mx.google.com with ESMTPS id p10sm2998439gvf.19.2009.06.06.22.26.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 06 Jun 2009 22:26:32 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=localhost.my.domain) by localhost with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MDAtI-0000bL-2E; Sun, 07 Jun 2009 07:25:56 +0200 Received: (from kaiw@localhost) by localhost.my.domain (8.14.3/8.14.3/Submit) id n575Ptfq002314; Sun, 7 Jun 2009 07:25:55 +0200 (CEST) (envelope-from kaiwang27@gmail.com) X-Authentication-Warning: localhost.my.domain: kaiw set sender to kaiwang27@gmail.com using -f Date: Sun, 7 Jun 2009 07:25:55 +0200 From: Kai Wang To: Tim Kientzle Message-ID: <20090607052555.GA2154@viskning> References: <20090604093831.GE48776@hoeg.nl> <31BD4D08-6558-46FF-9B93-CF8249AAC461@cederstrand.dk> <4A27F105.4040109@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4A27F105.4040109@freebsd.org> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: Ed Schouten , hackers@freebsd.org, current@freebsd.org, Erik Cederstrand Subject: Re: Clang: now available from a SVN server near you! X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jun 2009 05:57:31 -0000 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