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?"

4 of 48 comments (clear)

  1. This article should have been called by GigsVT · · Score: 3, Funny

    "Why you shouldn't use OOP for anything important."

    --
    I've had enough abrasive sigs. Kittens are cute and fuzzy.
  2. cat got my tongue by sanity_slipping · · Score: 1, Funny

    I want to write an insanely clever and informative post and answer Milo's question in a way which would cause the calculating hordes of Slashdot moderaters to moderate my post to Score:5, Astounding!

    Unfortunately, I've never used C++ before in my life. (except for a "Hello World!" back in High School)

    --
    I can feel my sanity, beyond my reach and slipping...
  3. Me Too! by kzadot · · Score: 4, Funny

    Our large corporation also has a project, a client has requested that we implement BubbleSort, QuickSort, ShellSort, and one other sort that we learnt in cl^H^H^H^H^H^H^H^H^H err, discussed in a business meeting. The err, client also requests a 1 page analysis comparing and contrasting the differences between the searches.

    Can code generation do this? It could really increase my chances of a good mar^H^H^H err profit yeah.

  4. Very cheap visualization tool by Mr.+Darl+McBride · · Score: 2, Funny
    There's a very cheap STL project visualization tool, made by a company called "Prince." Their fine visualization tools are available in the pasta aisle of your favorite grocer. Simply bring water to boiling, stir in the Visualization Tool, and soon you'll have a representation of the calling methods employed by the average STL application.

    For each additional programmer involved in the project, double the contents by stirring in a random different kind of Visualization Tool.

    If you're targeting multiple architectures with different STL implementations, the Visualization Tool can be enhanced by having the lead of each platform boil their own pot of Visualization Tool, and then throwing the still-boiling contents at the other chefs^W developers.

    If you aren't clear as to where I'm headed, I'll next recommend a more painful exercise: Go ahead and try debugging somebody else's template-heavy code.