This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: query of gcc
- From: Ken Foskey <foskey at optushome dot com dot au>
- To: gcc help <gcc-help at gcc dot gnu dot org>
- Date: Fri, 24 Dec 2004 08:50:27 +1100
- Subject: Re: query of gcc
- Organization: openoffice.org
- References: <41CA4B3C.6040106@cadence.com>
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