After three years working on a C++ project, the executable has grown to 4 MB. I\'d like to see where all this space is going. Is there a tool that could report what the biggest
I could not get nm
to work for me but did manage to find a useful tool called Sizer. It reads the debug information created by Visual Studio using the Debug Interface Access libraries. It's pretty straightforward to use, as describe on the site.
Sizer.exe
. The output will go to stdout so you'll probably want to redirect to a file.The code sizes are broken down in different sections and grouped by function, data, class, etc, each section sorted in descending order of code size.