Find class/function contribution to final code size

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by miccio on Sat Jul 25 06:23:52 MST 2015
Hello everyone,

i'm using LPCXpresso 7.8 together with an LPC11C24 to develop an C++ application using a quite large library (nominal footprint of 22k). In addition to that I wrote a sort of HAL for the various peripherals that are going to be used.
Unfortunately when I try to compile the software I end up with the flash overflow error, even in Release build with -Os enabled on compiler, linker (link-time optimization enabled as well).
I therefore thought of optimizing everything by looking into the .map file in order to find out how much each class/function/header contributes to the code size.
Is there any documentation of the .map file format used by the toolchain or - better yet - a better way of investigating that?