This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Very slow link times on debug versions of C++ program on x86_64. Includes oprofile of ld...
- From: "H. J. Lu" <hjl at lucon dot org>
- To: "Talbot, George" <Gtalbot at locuspharma dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 20 Jun 2007 06:46:53 -0700
- Subject: Re: Very slow link times on debug versions of C++ program on x86_64. Includes oprofile of ld...
- References: <BAE72CC195BC2C45A07D1C1C161F166601230FB0@ld3.discovery.com>
On Wed, Jun 20, 2007 at 09:19:39AM -0400, Talbot, George wrote:
> Hi all,
>
> I've recently upgraded my machine here to an x86_64 box running Fedora
> Core 6 (7 came out a week after I installed doh!). I have a largish C++
> program that I compile in both a release (-O3 -DNDEBUG) and debug (-O0
> -ggdb3) versions that uses a lot of templates and stuff. Linking the
> release one is pretty quick...on the order of 10-20 seconds or so.
> However linking the debug version takes many minutes, and the CPU is
> pegged during the link.
>
It may be related to
http://sourceware.org/ml/binutils/2007-06/msg00064.html
Please open a bug repprt at
http://www.sourceware.org/bugzilla/
with a testcase to reproduce it. If the testcase is too big, you
can make it available via ftp/http.
Thanks.
H.J.