tags:

views:

1687

answers:

3

My build (gcc) toolchain produces a .map file. Is there a tool to analyze the memory map graphically?

+1  A: 

I think you are looking for something similar to this, right?
But I'm not sure there is one for Linux, but I think you could do a "simple analyzer script".
The basic idea would be to be able to extract from a given .map file, the address of a symbol. So in this script, you could load the .map file and write the name of a variable and read the content related to it.
Well, that's my small advice, hope it helps.

Update : Found you a windows app called Stackanalyzer, but again, I'm not sure it fits you needs. Good Luck.

ramayac
+13  A: 
Frank Krueger
That's pretty cool Frank.
JeffV
Thanks. It can be made more accurate by taking into account the 1 pixel gap. Also, you would want to make links in this "map" to some kind of key/dictionary section on the page. But yeah, this could be useful.
Frank Krueger
Did you write it. IF so, You wrote this script to answer this question? or you wrote it for your regular use?
claws
+2  A: 

Inspired by the above and because I wanted one to parse the map file generated by Microsoft Visual Studio, I wrote another python script to parse a map file and output a visual layout of the symbols. Check it out here Visual Map File Parser