This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bad performance of g++ on HP-UX???
- To: vanpraet at retarget dot com
- Subject: Re: Bad performance of g++ on HP-UX???
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Fri, 22 Oct 1999 00:42:36 +0200
- CC: law at cygnus dot com, gnu-gcc-bug at news3 dot Belgium dot EU dot net
- References: <16414.940387432@upchuck.cygnus.com> <199910211551.QAA02356@retarget.com>
> P.S. Any detailed documentation somewhere (except for the source code ;-) )
> about how this iterative template instantiation works?
Well, what do you want to know? With -frepo, gcc does not perform
implicit template instantiation. As a result, symbols are missing
during linking. collect2 collects these symbols from the linker error
messages, and writes them into files.
Then collect2 invokes gcc again, which now also considers the
repository, and instantiates the templates mentioned in the
repository. This, in turn, might result in more
instantiations. Eventually, you reach the linear closure, at which
point the linking is successful.
Regards,
Martin