This is the mail archive of the gcc@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 reg. gcc


> -----Original Message-----
> From: gcc-owner On Behalf Of Shachindra Sharma
> Sent: 23 December 2004 18:28

> We have around 50 files out of which a library is being made. Now when
> we make a single compilation unit i.e. all the files #include in one
> file and compile it the time taken is of the order of 5secs where as
> if we compile the files individually and then make a library it takes
> around 15X more time.
> 
> We believe that there can be two reasons for this:
> 
> a) In case of single compilation unit the files are loaded compiled
> and kept in the memory and their subsequent reuse becomes faster. In
> fact they are not loaded on the next use.
> b)  There is a long include path these files lie on the network disks

  *There's* your problem.  Well, probably, anyway.  What happens when you run
the compile from local disks?

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


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