This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bad performance of g++ on HP-UX???


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]