Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Apr 2012 17:57:31 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        "Conrad J. Sabatier" <conrads@cox.net>
Cc:        Robert Huff <roberthuff@rcn.com>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: using clang (was: Re: ps, clang and make variables)
Message-ID:  <alpine.BSF.2.00.1204011735330.70957@wonkity.com>
In-Reply-To: <20120401160653.0a79b997@cox.net>
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> <alpine.BSF.2.00.1204011223440.69728@wonkity.com> <20120401141129.1f94e50e@cox.net> <20120401160653.0a79b997@cox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 1 Apr 2012, Conrad J. Sabatier wrote:

> On Sun, 1 Apr 2012 14:11:29 -0500
> "Conrad J. Sabatier" <conrads@cox.net> wrote:
>
>> On Sun, 1 Apr 2012 12:29:45 -0600 (MDT)
>> Warren Block <wblock@wonkity.com> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1204011735330.70957>