query reg. gcc
Dave Korn
dave.korn@artimi.com
Thu Dec 23 20:09:00 GMT 2004
> -----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....
More information about the Gcc
mailing list