This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: query of gcc


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]