当前位置:网站首页>Rough analysis of map file
Rough analysis of map file
2022-07-06 12:01:00 【csdndulala】
https://blog.csdn.net/weixin_30632899/article/details/94867874
Map The document is MCU programmatic Map( Map ).
The code we wrote , After compiling and linking a series of actions , Will generate a elf File format , From this elf The file can generate a hex perhaps bin file , For burning MCU Inside to run , meanwhile ( Configurable ) Generate a program called Map The file of .
This elf The file actually contains all kinds of information about the program , Include function name 、 Variable name , Address 、 Size and other very rich information . And this map The file is from elf Propose to get , Very intuitively ( In text form ) Show which function variables are contained in each file in the program , And in which segments are these function variables allocated , What's the address , And the size of the space it occupies .
map The file contains the following :
- Archive member included to satisfy reference by file (symbol)
Library function information called : From which .a Which of them? .o - Allocating common symbols
Uninitialized global variables : size Source of variable - Discarded input sections
No function is called 、 Variable - Memory Configuration
according to .ld In file MEMORY To divide the memory area : name 、 Initial address 、 length - Linker script and memory map
What is needed for the link .o .a
according to .ld In file SECTION To divide the area :
.txt Code segment
.rodata Strings and local variables
.srodata Used in the library rodata
.rela.dyn
.rela.text. Function information to be relocated
.data Data segment ( Big )
.sdata Data segment ( Small )
.bss Initialize to 0 The variable of ( Big )
.sbss Initialize to 0 The variable of ( Small )
COMMON Uninitialized variables
.attributes
.debug_info
.debug_abbrev
.debug_loc
.debug_aranges
.debug_line
.debug_str
.debug_frame
边栏推荐
- Redis面试题
- 小天才电话手表 Z3工作原理
- Correspondence between STM32 model and contex M
- XML file explanation: what is XML, XML configuration file, XML data file, XML file parsing tutorial
- RT-Thread API参考手册
- Selective sorting and bubble sorting [C language]
- Gallery之图片浏览、组件学习
- [CDH] cdh5.16 configuring the setting of yarn task centralized allocation does not take effect
- 使用LinkedHashMap实现一个LRU算法的缓存
- Those commonly used tool classes and methods in hutool
猜你喜欢
2019 Tencent summer intern formal written examination
[CDH] cdh5.16 configuring the setting of yarn task centralized allocation does not take effect
Gallery之图片浏览、组件学习
Apprentissage automatique - - régression linéaire (sklearn)
电商数据分析--用户行为分析
I2C总线时序详解
C language callback function [C language]
MySQL主从复制的原理以及实现
5G工作原理详解(解释&图解)
A possible cause and solution of "stuck" main thread of RT thread
随机推荐
imgcat使用心得
Apprentissage automatique - - régression linéaire (sklearn)
程序员老鸟都会搞错的问题 C语言基础 指针和数组
Time slice polling scheduling of RT thread threads
[BSidesCF_2020]Had_ a_ bad_ day
OSPF message details - LSA overview
Unit test - unittest framework
Implementation scheme of distributed transaction
高通&MTK&麒麟 手機平臺USB3.0方案對比
Common regular expression collation
Kaggle竞赛-Two Sigma Connect: Rental Listing Inquiries
機器學習--線性回歸(sklearn)
关键字 inline (内联函数)用法解析【C语言】
Some concepts often asked in database interview
STM32型号与Contex m对应关系
Those commonly used tool classes and methods in hutool
[yarn] yarn container log cleaning
Basic use of pytest
SQL time injection
XML文件详解:XML是什么、XML配置文件、XML数据文件、XML文件解析教程