From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13546 invoked by alias); 23 Dec 2004 21:50:32 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 13519 invoked from network); 23 Dec 2004 21:50:25 -0000 Received: from unknown (HELO mail05.syd.optusnet.com.au) (211.29.132.186) by sourceware.org with SMTP; 23 Dec 2004 21:50:25 -0000 Received: from [192.168.2.16] (c211-31-37-8.rivrw5.nsw.optusnet.com.au [211.31.37.8]) by mail05.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id iBNLoNsf014905 for ; Fri, 24 Dec 2004 08:50:23 +1100 Subject: Re: query of gcc From: Ken Foskey To: gcc help In-Reply-To: <41CA4B3C.6040106@cadence.com> References: <41CA4B3C.6040106@cadence.com> Content-Type: text/plain Organization: openoffice.org Date: Thu, 23 Dec 2004 21:50:00 -0000 Message-Id: <1103838627.18837.25.camel@froddo.foskey.org.au> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2004-12/txt/msg00224.txt.bz2 On Thu, 2004-12-23 at 10:06 +0530, Deepak Soi wrote: > compile 50 files of a project (.cpp and .c ) using makefile utility > sequentially , it will take around 75 secs, as noted by "time" command. So... You should not be changing all 75 files or common headers to force this very much. My compile times from end to end are 4 hours best case, 19 hours worst case. I can rebuild in about 30 seconds normally just checking the dependencies. You are optimising the wrong problem. > Surely this difference is due to the time involved due to loading of > same header files again and again when it is #included in more than 1 look up ccache. This takes down my compile times from 19 hours to 4 hours, huge difference. -- Ken Foskey OpenOffice.org developer