Skip to content
A python script searches in .map file, generated from GCC-Tool chain, for information related to memory usage
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
map_file_analyzer.py
map_settings.txt
python_map_ana.JPG

README.md

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)
You can’t perform that action at this time.