Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What are the contents of the map file

Shulou Source: shulou.com Published: 2022-06-01 06:00:26 09月26日 Update

This article introduces the relevant knowledge of "what are the contents of the map file?" in the operation of the actual case, many people will encounter such a dilemma, and then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The contents of MAP files generated by MDK compilation can be divided into five categories. This issue introduces the first three categories.

1.Section Cross References

Section Cross References: module, segment (entry) cross-reference. This section refers to the reference relationship between modules and segments (defined entries) generated by each source file.

App_main.o (.text) refers to app_fun.o (.text) for Communication_Test (

The text function (.text) in the app_main module (app_main.o) references (or calls) the text function in the app_fun module (app_fun.o).)

2.Removing Unused input sections from the image

Unused module

The last line of information in the figure above is "2 unused section (s) (total 9 bytes) removed from the image". Indicates that a total of 2 pieces of content have not been called, with a size of 9 bytes.

3.Image Symbol Table

Mapping symbol tables are divided into two categories: Local Symbols local and 2.Global Symbols global.

Analysis of each part:

1) .Symbol Name: symbol name

2) .value: stores the corresponding address

3) .Ov Type: the type corresponding to the symbol (Number, Section, Thumb Code, Data, etc.)

4) .size: storage size

5) .object (Section): segment target

This is the end of the introduction of "what are the contents of the map file?" Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Content modules files symbols entries functions size more knowledge storage generation utility learning next one line figure above between information global name Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Redmi MySQL Linux OPPO Reno