breakdown c++ code size
- by Evan Rogers
I'm looking for a nice stackoverflow-style answer to the first question in this old blog post, which I'll repeat below:
"I’d really like some tool (ideally, g++ based) that shows me what parts of compiled/linked code are generated from what parts of C++ source code. For instance, to see whether a particular template is being instantiated for hundreds of different types (fixable via a template specialization) or whether code is being inlined excessively, or whether particular functions are larger than expected."