Denislam Valeev / Mbed OS Nucleo_rtos_basic
Embed: (wiki syntax)

« Back to documentation index

_Parser Class Reference

_Parser Class Reference

Inherited by _ArmccParser, _GccParser, and _IarParser.

Public Member Functions

def module_add
def module_replace
def parse_mapfile

Detailed Description

Internal interface for parsing

Definition at line 21 of file memap.py.


Member Function Documentation

def module_add (   self,
  object_name,
  size,
  section 
)
Adds a module or section to the list

Positional arguments:
object_name - name of the entry to add
size - the size of the module being added
section - the section the module contributes to

Definition at line 34 of file memap.py.

def module_replace (   self,
  old_object,
  new_object 
)
Replaces an object name with a new one

Definition at line 60 of file memap.py.

def parse_mapfile (   self,
  mapfile 
)
Parse a given file object pointing to a map file

Positional arguments:
mapfile - an open file object that reads a map file

return value - a dict mapping from object names to section dicts,
       where a section dict maps from sections to sizes

Definition at line 68 of file memap.py.