From mboxrd@z Thu Jan 1 00:00:00 1970 From: dmartin@clifton-labs.com (Dale E. Martin) To: Alexandre Oliva Cc: egcs@egcs.cygnus.com Subject: Re: -frepo bugs in 1.1.1? Date: Wed, 31 Mar 1999 23:46:00 -0000 Message-ID: <87d82j4rxe.fsf@chinchilla.clifton-labs.com> References: <8790d8m7bm.fsf@chinchilla.clifton-labs.com> <87k8wr4ttd.fsf@chinchilla.clifton-labs.com> X-SW-Source: 1999-03n/msg00310.html Message-ID: <19990331234600.D9ZrgGGUq7FmiVnGFBIA8DEPSTkhFINT0ASxEjbQ7X8@z> Alexandre Oliva writes: > What about debugging? Even with it stripped: strings scram | grep "dl_list::find" class wrapper_container * dl_list::find(const class IIR_Declaration *) class wrapper_container * dl_list::find(const class IIR_Declaration *) class wrapper_container * dl_list::find(const class IIR_Declaration *) class wrapper_container * dl_list::find(const class IIR_Declaration *) [ repeat 70 more times ] It was on a stripped and optimized binary that I started playing around with originally. I was trying to figure out how my binary was so large. (Although with egcs it's about half the size as compared with g++-2.7.2.) > Try `nm --demangle' instead of `strings'; if you get more than one > definition (not `U') for each symbol, you may have found a problem. Interesting - that only shows it once in the binary. So, here's what I know: 1) The string listed above, makes up 7k of my binary even after stripping it. 2) If I compile with "-frepo", I get linker errors (on other template classes.) I find 2) less interesting if -frepo isn't going to shrink my binary anyways, and I guess we're pretty sure it won't due to "nm --demangle" showing the function actually being defined only once. So I wonder what's up with the repeated strings? Could it be due to an assertion in that method? (So that the assertion can print the function name?) As I said, the definition of the method is in the header so the assertion would be included everywhere the class is referenced... -- +------------------------- pgp key available --------------------------+ | Dale E. Martin | Clifton Labs, Inc. | Senior Computer Engineer | | dmartin@clifton-labs.com | http://www.clifton-labs.com | +----------------------------------------------------------------------+