MDK编译生成的MAP文件内容分为五大类。本期介绍前三类。
1.Section Cross References
Section Cross References:模块、段(入口)交叉引用。这部分指的是各个源文件生成的模块、段(定义的入口)之间相互引用的关系。
map文件解析(1)

app_main.o(.text) refers to app_fun.o(.text) for Communication_Test(
app_main模块(app_main.o)中的text函数(.text),引用(或者说调用)了app_fun模块(app_fun.o)中的text函数。)
2.Removing Unused input sections from the image
未使用的模块;
map文件解析(1)

上图中最后一行信息:“2 unused section(s) (total 9 bytes) removed from the image”。表示总共有2段内容没有被调用,大小9字节。
3.Image Symbol Table
映射符号表分为两大类:Local Symbols局部和2.Global Symbols全局。

map文件解析(1)

各部分解析:
1).Symbol Name:符号名称
2).Value:存储对应的地址;
3).Ov Type:符号对应的类型(有Number、Section、Thumb Code、Data等);
4).Size:存储大小
5).Object(Section):段目标

相关文章:

  • 2021-11-08
  • 2022-12-23
  • 2021-12-14
  • 2021-12-25
  • 2021-05-04
  • 2021-12-29
  • 2018-03-25
猜你喜欢
  • 2021-10-12
  • 2021-09-18
  • 2021-10-19
  • 2019-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案