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.
Solved! Go to Solution.
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
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