Search code examples
c++visual-c++symbolsdumpbin

Utility for analysing symbols in a library file


I'm having some problems with a large static library (.lib) file, and am suspecting code bloat from indiscriminate use of template classes. I want to analyse the symbols in the library to confirm which are making up the bulk of the file size.

When I link my executable against this library, the resulting output is much more sensible, size-wise (about 20Mb), so the linker is obviously stripping out lots of redundant symbols. I want to find out what its removing..

I know I can use dumpbin to generate the symbols and headers, but, with the library in question being pretty large (900Mb), this dump is pretty much unusable without a utility for parsing and reporting on it.

Obviously I could write this myself, but was wondering if anyone can recommend any freeware already available for this?


Solution

  • I found one (SymbolSort) that works really well, gives me exactly what I need: