Skip to content

A python script searches in .map file, generated from GCC-Tool chain, for information related to memory usage

License

Notifications You must be signed in to change notification settings

yahyatawil/map_file_analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use

This script searches in .map file, generated from GCC-Tool chain, for information related to memory usage

User has to change settings in the associated file "map_settings.txt" to set:

  • Directory to .map file
  • Sections defined in linker script that has unique start and end address keywords (.i.e __bss_start__)
  • Sections defined in linker script with no unique start and end address keywords. User must specify start keyword and next section keyword ... look bellow:
....
*(.dtors)
*(.rodata*)

KEEP(*(.eh_frame*))
....

that was part from linker script. (.eh_frame) is the unique keyword that make the map_file_analyzer.py knows where (.rodata) ends.

Script in action

Tested Using ...

  • Python 2.7 (64 bit) and Python 3.7.2 (32 bit) on Winodws 10 and using linker script of NRF52 SDK (nrf5x_common.ld)

About

A python script searches in .map file, generated from GCC-Tool chain, for information related to memory usage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages