Slashdot Mirror


Tools for Analyzing C++ Class Code Generation?

Milo_Mindbender submits this query: "I've got a midsize Linux project which uses a lot of STL and other C++ template code. Even considering this, I end up with a lot bigger text (generated code) segment than expected. I know the information about the amount of code generated for each class is in the objdump, but prying it out by hand is a problem when you get five line long template invocations and hundreds of methods to wade through. Can anyone can recommend some tools that analyze binary or objdump output and summarize the amount of code generated for each class, including each unique template or STL class?"

1 of 48 comments (clear)

  1. no tools but... by gears5665 · · Score: 0, Offtopic

    For others learning the language I found these books helpful for C++:

    Effective C++ by Meyers
    Effective STL by Meyers
    and STL C++ Standard Library by Josuttis