AnsweredAssumed Answered

MAP file output section with memory usage listed by library

Question asked by Gary Nelson on Sep 23, 2009
Latest reply on Sep 24, 2009 by Tom Thompson

Is there a way to get the linker to create a section with a summary of memory usage listed by LIBRARY (*.a) or OBJECT module (*.o - if not part of a library)?  We are running out of code space and so there are many things we can do to reduce the code space size.  But I'd like to have a summary section that shows something like,

 

library/module                          start         size

----------------------------------------------------------

mc2.o

fft.o

C_4i_CF_StdABI_MSL.a         

C_4i_CF_StdABI_Runtime.a

fp_coldfire.a

mqx.a

m52259mc2.a

rtcs.a

 .

 

etc....

 

Obviously, I can calcuate this by hand by wading through the massive xMAP file line by line and looking for the beginning of each successive section, but this seems cumbersome especially when it's somehting that could easily by including in the linker.  I looked through all the linker output switches, but there doesn't seem to be any that addresses this need.  Perhaps I'm overlooking something.

 

Message Edited by gmnelson on 2009-09-23 03:50 PM

Outcomes