From owner-freebsd-questions@FreeBSD.ORG Sun Apr 1 18:29:54 2012 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 972871065672 for ; Sun, 1 Apr 2012 18:29:54 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 4ECB48FC0C for ; Sun, 1 Apr 2012 18:29:54 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id q31ITjaK069746; Sun, 1 Apr 2012 12:29:45 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id q31ITjEo069743; Sun, 1 Apr 2012 12:29:45 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sun, 1 Apr 2012 12:29:45 -0600 (MDT) From: Warren Block To: "Conrad J. Sabatier" In-Reply-To: <20120401130201.272897fc@cox.net> Message-ID: References: <4F76DD24.4060104@herveybayaustralia.com.au> <20120331135624.GA46283@ozzmosis.com> <20343.7837.796535.407848@jerusalem.litteratus.org> <20120401073525.1c05bc0f@cox.net> <20344.21184.853321.579064@jerusalem.litteratus.org> <20120401130201.272897fc@cox.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Sun, 01 Apr 2012 12:29:45 -0600 (MDT) Cc: Robert Huff , FreeBSD Questions Subject: Re: using clang (was: Re: ps, clang and make variables) 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: Sun, 01 Apr 2012 18:29:54 -0000 On Sun, 1 Apr 2012, Conrad J. Sabatier wrote: > I can well understand your hesitation. I didn't jump on the clang > bandwagon for a good while myself, either. > > But, from examining and comparing clang's assembly language output > against gcc's, it does seem pretty apparent that clang produces > some pretty darned efficient code, frequently using notably fewer > machine instructions than gcc, so I try to use it now as much as > possible. I also find its error and warning messages to be much more > precise and informative than gcc's, which is a real boon if you do any > coding yourself. > > There's that, plus the fact that the base system's version of gcc (4.2) > doesn't fully support my processor family type (amdfam10), whereas > clang does (although, to be fair, gcc 4.6+ does as well). Have you tried clang with ccache? Any tricks?