Deepak Pant <mail.dpant@xxxxxxxxx> writes: > ---------------------------------------------- > $ gcc -o foo.exe -Wl,-Map,foo.map foo.c > will produce a foo.map file. > ------------------------------------------------- > > The main purpose of this is map file is to interpret a stack trace from a > release build of my application. Since the application log only contain the > address in my application, this map file is used to have a mapping of those > addresses in stack trace to the actual function address. > > Now my question is do gcc export the address of static function to the map > file? i know that visual studio .Net does not export it but not sure about > gcc First I am going to once again recommend that you compile with -g and use addr2line to convert addresses into locations. If you really want to use the map file for some reason, note that it is generated by the linker, not by gcc. I just took a look, and it appears to only list globally visible symbols, not static functions. Ian