MAP file output section with memory usage listed by library

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MAP file output section with memory usage listed by library

Jump to solution
1,272 Views
gmnelson
Contributor III

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
Labels (1)
0 Kudos
1 Solution
285 Views
J2MEJediMaster
Specialist I

I've looked and there is not a summary option like you describe in the linker. I would suggest submitting that as a feature request, but that will not to help you right now... Sorry

 

---Tom

View solution in original post

0 Kudos
1 Reply
286 Views
J2MEJediMaster
Specialist I

I've looked and there is not a summary option like you describe in the linker. I would suggest submitting that as a feature request, but that will not to help you right now... Sorry

 

---Tom

0 Kudos