你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

查看: 3599|回复: 6

*.map文件中的这些信息分别代表什么意思??

[复制链接]

57

主题

1159

回帖

0

蝴蝶豆

金牌会员

最后登录
2020-12-6
发表于 2015-9-22 16:04:10 | 显示全部楼层 |阅读模式
用keil调试代码,希望知道代码占Flash的大小,查看map文件发现有三条信息,不知道这三条信息分别代表啥意思,,,希望大神指导!!谢谢
QQ截图20150922155736.png
回复

使用道具 举报

9

主题

646

回帖

24

蝴蝶豆

论坛元老

最后登录
2020-9-4
发表于 2015-9-22 16:46:01 | 显示全部楼层
The following example shows the output in tabular format with the totals separated out for easy reading:

Example 2. Image component size information

Code (inc. data)   RO Data   RW Data    ZI Data      Debug

3712        1580        19        44      10200       7436   Object Totals
0              0        16         0          0          0   (incl. Generated)
0              0         3         0          0          0   (incl. Padding)
21376        648       805         4        300      10216   Library Totals
0              0         6         0          0          0   (incl. Padding)

===============================================================================

Code (inc. data)   RO Data    RW Data    ZI Data      Debug
25088       2228       824         48      10500      17652   Grand Totals
25088       2228       824         48      10500      17652   ELF Image Totals
25088       2228       824         48          0          0   ROM Totals

===============================================================================

Total RO  Size (Code + RO Data)             25912 (  25.30kB)
Total RW  Size (RW Data + ZI Data)          10548 (  10.30kB)
Total ROM Size (Code + RO Data + RW Data)   25960 (  25.35kB)


In this example:

Code (inc. Data)
Shows how many bytes are occupied by code. In this image, there are 3712 bytes of code. This includes 1580 bytes of inline data (inc. data), for example, literal pools, and short strings.

RO Data
Shows how many bytes are occupied by read-only data. This is in addition to the inline data included in the Code (inc. data) column.

RW Data
Shows how many bytes are occupied by read-write data.

ZI Data
Shows how many bytes are occupied by zero-initialized data.

Debug
Shows how many bytes are occupied by debug data, for example, debug input sections and the symbol and string table.

Object Totals
Shows how many bytes are occupied by objects linked together to generate the image.

(incl. Generated)
armlink might generate image contents, for example, interworking veneers, and input sections such as region tables. If the Object Totals row includes this type of data, it is shown in this row.

In the example, there are 19 bytes of RO data in total, of which 16 bytes is linker-generated RO data.

Library Totals
Shows how many bytes are occupied by library members that have been extracted and added to the image as individual objects.

(incl. Padding)
armlink inserts padding, if required, to force section alignment. If the Object Totals row includes this type of data, it is shown in the associated (incl. Padding) row. Similarly, if the Library Totals row includes this type of data, it is shown in its associated row.

In the example, there are 19 bytes of RO data in the object total, of which 3 bytes is linker-generated padding, and 805 bytes of RO data in the library total, with 6 bytes of padding.

Grand Totals
Shows the true size of the image. In the example, there are 10200 bytes of ZI data (in Object Totals) and 300 of ZI data (in Library Totals) giving a total of 10500 bytes.

ELF Image Totals
If you are using RW data compression (the default) to optimize ROM size, the size of the final image changes and this is reflected in the output from --info. Compare the number of bytes under Grand Totals and ELF Image Totals to see the effect of compression.

In the example, RW data compression is not enabled. If data is compressed, the RW value changes.

ROM Totals
Shows the minimum size of ROM required to contain the image. This does not include ZI data and debug information which is not stored in the ROM.
回复 支持 反对

使用道具 举报

13

主题

334

回帖

0

蝴蝶豆

高级会员

最后登录
2018-5-11
发表于 2015-9-22 18:58:16 | 显示全部楼层
百度                  
回复 支持 反对

使用道具 举报

57

主题

1159

回帖

0

蝴蝶豆

金牌会员

最后登录
2020-12-6
 楼主| 发表于 2015-9-22 22:58:33 | 显示全部楼层

百度的不专业
回复 支持 反对

使用道具 举报

13

主题

334

回帖

0

蝴蝶豆

高级会员

最后登录
2018-5-11
发表于 2015-9-23 09:23:12 | 显示全部楼层

那就只有花时间看使用说明,英文版的,很全
回复 支持 反对

使用道具 举报

57

主题

246

回帖

0

蝴蝶豆

金牌会员

最后登录
2019-7-18
发表于 2015-9-23 10:55:12 | 显示全部楼层
含义如沙发所言,出处是ARMLink User Guide
回复 支持 反对

使用道具 举报

57

主题

1159

回帖

0

蝴蝶豆

金牌会员

最后登录
2020-12-6
 楼主| 发表于 2015-9-23 11:35:45 | 显示全部楼层
Tension 发表于 2015-9-23 10:55
含义如沙发所言,出处是ARMLink User Guide

谢谢了!
回复 支持 反对

使用道具 举报

关于意法半导体
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
招聘信息
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
关注我们
st-img 微信公众号
st-img 手机版