From owner-freebsd-questions@FreeBSD.ORG Sun Apr 1 23:57:41 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D71E6106564A for ; Sun, 1 Apr 2012 23:57:41 +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 8E1D98FC1B for ; Sun, 1 Apr 2012 23:57:41 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id q31NvV6L071195; Sun, 1 Apr 2012 17:57:31 -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 q31NvVDT071192; Sun, 1 Apr 2012 17:57:31 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sun, 1 Apr 2012 17:57:31 -0600 (MDT) From: Warren Block To: "Conrad J. Sabatier" In-Reply-To: <20120401160653.0a79b997@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> <20120401141129.1f94e50e@cox.net> <20120401160653.0a79b997@cox.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Sun, 01 Apr 2012 17:57:31 -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 23:57:41 -0000 On Sun, 1 Apr 2012, Conrad J. Sabatier wrote: > On Sun, 1 Apr 2012 14:11:29 -0500 > "Conrad J. Sabatier" wrote: > >> On Sun, 1 Apr 2012 12:29:45 -0600 (MDT) >> Warren Block wrote: >>> >>> Have you tried clang with ccache? Any tricks? >> >> No, I haven't tried that. Actually, I don't believe I've ever even >> tried using ccache at all (at least, not that I can recall). :-) >> > > You've piqued my curiosity here. :-) > > I'm doing a buildworld at the moment using ccache with clang. So far, > all is well, no problems. Didn't do anything special to get started, > just "ccache make -DNO_CLEAN -j8 buildworld" (I have all that > clang-enabling stuff already in /etc/make.conf). I know this first run > won't really show me much, other than that it *will* compile OK. > Subsequent runs should be interesting, though. :-) A few tests earlier today showed that with everything in cache, it took about 1.5 to 2 times as long to build with clang versus gcc 4.2.1. It was faster with a full cache than without, of course: clang took 38 minutes with nothing in cache, about 12 minutes with everything cached, and gcc buildworlds have been as fast as six minutes. A gcc all-cached test I just tried was 7:47. For some reason, buildworlds on this Core I5 are much faster when running powerd -a hadp than without. And somewhat variable.