硬汉嵌入式论坛

 找回密码
 立即注册
查看: 1438|回复: 4
收起左侧

[IAR] 请问IAR的map文件里file.o后中括号+数字表示什么?

[复制链接]

218

主题

1106

回帖

1770

积分

至尊会员

More we do, more we can do.

积分
1770
发表于 2022-3-21 19:40:48 | 显示全部楼层 |阅读模式
如图:
截屏_2022-03-21_19-03-35.png
回复

使用道具 举报

218

主题

1106

回帖

1770

积分

至尊会员

More we do, more we can do.

积分
1770
 楼主| 发表于 2022-3-21 23:10:58 | 显示全部楼层
痞子衡嵌入式:ARM Cortex-M文件那些事(5)- 映射文件(.map)  https://www.cnblogs.com/henjay724/p/8276648.html
回复

使用道具 举报

218

主题

1106

回帖

1770

积分

至尊会员

More we do, more we can do.

积分
1770
 楼主| 发表于 2022-3-21 23:25:00 | 显示全部楼层
The map file contains:
● Linking summary in the map file header which lists the version of the linker, the
current date and time, and the command line that was used.
● Runtime attribute summary which lists runtime attributes.
● Placement summary which lists each section/block in address order, sorted by
placement directives.
● Initialization table layout which lists the data ranges, packing methods, and
compression ratios.
● Module summary which lists contributions from each module to the image, sorted
by directory and library.
● Entry list which lists all public and some local symbols in alphabetical order,
indicating which module they came from.
● Some of the bytes might be reported as shared.
Shared objects are functions or data objects that are shared between modules. If any
of these occur in more than one module, only one copy is retained. For example, in
some cases inline functions are not inlined, which means that they are marked as
shared, because only one instance of each function will be included in the final
application. This mechanism is also sometimes used for compiler-generated code or
data not directly associated with a particular function or variable, and when only one
instance is required in the final application.


回复

使用道具 举报

0

主题

1

回帖

1

积分

新手上路

积分
1
发表于 2024-10-16 15:52:30 | 显示全部楼层
map文件最后,会将所有编译的文件,根据文件当前所属文件夹进行分类,给出当前文件所对应的文件夹下,所有文件编译生产的代码所占用的资源量,程序员可以根据哪个文件夹下文件消耗的资源多,来合理裁剪自己的程序。这个数字其实就是给不同的文件夹给的一个标签,你工程里面,程序文件处于多少个文件,就有多少个文件编号
回复

使用道具 举报

82

主题

510

回帖

756

积分

金牌会员

积分
756
发表于 2024-10-16 17:44:39 | 显示全部楼层
学习了,有相关文档描述吗?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2025-6-11 06:35 , Processed in 0.369180 second(s), 26 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表