From owner-freebsd-questions@FreeBSD.ORG Tue Mar 17 14:02:25 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F5E3106566B for ; Tue, 17 Mar 2009 14:02:25 +0000 (UTC) (envelope-from gfritz@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.226]) by mx1.freebsd.org (Postfix) with ESMTP id EF0FF8FC0A for ; Tue, 17 Mar 2009 14:02:24 +0000 (UTC) (envelope-from gfritz@gmail.com) Received: by rv-out-0506.google.com with SMTP id l9so17847rvb.43 for ; Tue, 17 Mar 2009 07:02:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=wxiZeg4mlKCdmh+Q3LzoCd875OP7hbcrZ9Ed7W/st+o=; b=A3ZvoLHhQLobpuR+B8dluhY4mncQxuXSO7N9SOYr97HAQEBJjw7H2wAiz56OZ57mAW wyWz90Ot24cELtOqSXkKfUpGSszy6XXqiLQyDQB3k74vzcdbtDHrUfie8cOVKvqXAqU6 9o5hqiNMSax03mcQiWLAFV/8YOKU33tXHirqs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=OIrOB2uQcNPgI8nwx9WDcKP22x2B+byDDCFFRI9D/FEXC7wNyc0cNlNUEEVCv3aF7h zXm0cfTn+ZNf8CO8XJQBg3q56XSHmpqP/LphVI3XOXH1hePHLOiElO5+W9vH2YW1E18L L7xu7/OqbDysLGiNi5FpHW4VXPhjaSrD3fDNI= Received: by 10.114.81.1 with SMTP id e1mr29695wab.136.1237298544593; Tue, 17 Mar 2009 07:02:24 -0700 (PDT) Received: from dev.null (181-175-174-206.cust.wirelessbeehive.com [206.174.175.181]) by mx.google.com with ESMTPS id t1sm3439856poh.21.2009.03.17.07.02.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 17 Mar 2009 07:02:23 -0700 (PDT) Received: by dev.null (Postfix, from userid 1002) id 7464F837; Tue, 17 Mar 2009 08:02:21 -0600 (MDT) Date: Tue, 17 Mar 2009 08:02:21 -0600 From: Geoff Fritz To: Wojciech Puchar Message-ID: <20090317140221.GA85698@dev.null> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) Cc: Gr?newald Micha?l , freebsd general questions Subject: Re: Cooking LLVM in FreeBSD 8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Mar 2009 14:02:25 -0000 On Tue, Mar 17, 2009 at 01:49:24PM +0100, Wojciech Puchar wrote: > > On Ivoras'FreeBSD page, ``What's cooking for FreeBSD 8'' > > > > http://ivoras.sharanet.org/freebsd/freebsd8.html > > LLVM site shows it's something like precompiler+runtime compiling. > > will it be used that way, or as usual compiler? I think the idea is to get away from gcc with its evil GPL3 license as the default compiler. To that end, it looks like decent strides are being made with the clang front end to llvm: http://wiki.freebsd.org/BuildingFreeBSDWithClang I got bored one day and installed the port, set CC=ccc in /etc/make.conf then built a few ports with it to benchmark against various gcc incantations. (Very unscientific, so I won't post numbers). I wasn't quite bored enough to try a make world with it, though. But according the the link I provide, it appears to be 99% of the way there. As best I can tell, there would be a non-trvial performance loss with using clang at this point. At wth least with the version that's currently in the ports tree (I didn't try building from the latest svn version). It does look promising, though. I hope it'll eventually surpass gcc in optimization of code. I'm sure others are anxious for license purity within the base system. -- Geoff