From owner-freebsd-hackers@FreeBSD.ORG Wed May 21 08:39:37 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F2AE106567D for ; Wed, 21 May 2008 08:39:37 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 291A88FC14 for ; Wed, 21 May 2008 08:39:37 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 9D91B67FAAC; Wed, 21 May 2008 10:22:35 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JdF1O4NHRvc0; Wed, 21 May 2008 10:22:33 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id DD9C967FA76; Wed, 21 May 2008 10:22:33 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id m4L8MX5m071420; Wed, 21 May 2008 10:22:33 +0200 (CEST) (envelope-from rdivacky) Date: Wed, 21 May 2008 10:22:33 +0200 From: Roman Divacky To: Ed Schouten Message-ID: <20080521082233.GA71289@freebsd.org> References: <20080520170639.GE1181@hoeg.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080520170639.GE1181@hoeg.nl> User-Agent: Mutt/1.4.2.3i Cc: FreeBSD Hackers Subject: Re: FreeBSD and LLVM X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 May 2008 08:39:37 -0000 On Tue, May 20, 2008 at 07:06:39PM +0200, Ed Schouten wrote: > Hello everyone, > > First of all, for those of you who went to BSDCan, I hope you had a > pleasant flight/trip back home. :-) > > On Saturday I went to the LLVM talk (see http://llvm.org/), which I > really enjoyed. On Friday Remko Lodder and I already talked with him > about the LLVM project. I was excited about the project, so I decided to > give it a try at the office. > > At first I tried LLVM 2.2 with LLVM GCC4 4.2 from Ports, but it didn't > work like expected. I won't go into many details about it. > > When I discussed the problems I was seeing on my system at the office, > someone pointed me to the beta tarballs of the upcoming version 2.3, > which I installed by patching our FreeBSD port. > > http://llvm.org/prereleases/2.3/ > > As an ideal benchmark, I decided to compile an i386 kernel using the > LLVM 2.3 snapshot. I didn't expect it to happen, but it works! I was did you try clang as well? I wonder what it's able to do.... > capable of successfully booting into single user mode and shutting it > down safely. There is one problem however: > > http://llvm.org/bugs/show_bug.cgi?id=2267 > > For some reason, the inline asm support of LLVM is incomplete and causes > compilation errors when generating some of the atomic functions in > i386/include/atomic.h (lines 262 to 265). To work around this, I made > the functions non-atomic. Silly, I know, but it was good enough to > perform some basic tests. > > I think it would be nice if LLVM would once become our standard C > compiler. LLVM currently uses GCC as its frontend, which proves to be > somewhat compatible with the original GCC> yeah... thats a worthy goal :) thnx! roman