This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: query reg. gcc
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Shachindra Sharma'" <shachin at gmail dot com>,<gcc at gnu dot org>,<zack at codesourcery dot com>,<dalej at apple dot com>
- Cc: <sdeepak at cadence dot com>
- Date: Thu, 23 Dec 2004 19:10:45 -0000
- Subject: 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....