Re: ccache support for make buildworld/make release

From: Ruslan Ermilov <ru_at_FreeBSD.org>
Date: Mon, 13 Sep 2004 09:39:35 +0300
On Sun, Sep 12, 2004 at 10:57:29PM +0300, Maxim Sobolev wrote:
> I have in mind extension for ccache which would allow it to be used with 
> buildworld. Instead of using hashed values of compiler binary size and 
> its last modification time, ccache should be using hash of the compiler 
> binary. To avoid hashing several megabytes worth image on each 
> invocation, compiler binary hash value can be by itself cached using 
> hashed values of compiler binary size and its last modification time. 
> 
That would work, indeed.  :-)

> Since linking the same objects from the cache is likely to produce the 
> same binary, bootstrap compiler generated on the second ccached 
> buildworld will be the same as one generated on the first one.
> 
Even not from cache:

# cd /usr/obj/usr/home/src/RELENG_4/gnu/usr.bin/cc/cc1/
# strip cc1
# md5 ./cc1 /usr/libexec/cc1
MD5 (./cc1) = 32173c94754290242a6b026cf96ce108
MD5 (/usr/libexec/cc1) = 32173c94754290242a6b026cf96ce108


Cheers,
-- 
Ruslan Ermilov
ru_at_FreeBSD.org
FreeBSD committer

Received on Mon Sep 13 2004 - 04:39:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:11 UTC