tags:

views:

214

answers:

2

I am looking to use the map file to resolve addresses that I get from the exe. Is there a library for parsing it or a more easier to parse format?

+2  A: 

Assuming you are talking about map files from MSVC compiler, check the documentation, it should be easy to parse line-by-line:

basic file format documentation

There is python code to parse map files programmatically, check this one:

python map parser

frunsi
+1  A: 

The primary issue is that the format of map files varies with compiler vendors and there are too many compiler vendors out there for us to guess which one you are using. BTW, there is no standard format for map files; as there is no requirement for one.

I look at the layout of the map file and write my own search programs using awk, Perl, Java, C, or whatever is handy and quick (or a language I want to learn).

Thomas Matthews