This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: horrible link times with g++ 4.1.1 and -g
- From: Brian Dessent <brian at dessent dot net>
- To: Egon Kocjan <egon dot kocjan at xlab dot si>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 30 Mar 2007 17:23:21 -0700
- Subject: Re: horrible link times with g++ 4.1.1 and -g
- References: <460DA749.5050209@xlab.si>
- Reply-to: gcc-help at gcc dot gnu dot org
Egon Kocjan wrote:
> I am trying to build a ~100 KLOC c++ application with g++ 4.1.1 and
> debugging enabled (-g, no -O...). I also link statically some other
> libraries, like libxml, clucene, etc.., mostly c. The link time with -g
> is really horrible - it is in range of several minutes! I used 3.4.5
> previously, and link time was more like 10-20 seconds. Am I missing
> something obvious here?
The linker is not part of gcc. Assuming you're using the GNU linker,
it's part of binutils, which has its own mailing list.
There have been some speedups in the linker code over the last few
years, so the first thing I'd do would be to try the latest version (or
better, CVS HEAD) and see if the problem is still there. If so, post to
the binutils list with as many details as you can.
Brian