MAP 文件分析 - 我的代码大小从何而来?

2022-01-11 00:00:00 linker c++ code-size

我正在寻找一种工具来简化对大型 C++ 项目 (VC6) 的链接器映射文件的分析.

I am looking for a tool to simplify analysing a linker map file for a large C++ project (VC6).

在维护期间,二进制文件稳定增长,我想弄清楚它的来源.我怀疑在不同 DLL 之间共享的库中存在一些过度热心的模板扩展,但是浏览地图文件并没有提供很好的线索.

During maintenance, the binaries grow steadily and I want to figure out where it comes from. I suspect some overzealeous template expansion in a library shared between different DLL's, but jsut browsign the map file doesn't give good clues.

有什么建议吗?

推荐答案

这个是一个很棒的编译器生成的地图文件分析/资源管理器/查看器工具.检查是否可以浏览 gcc 生成的地图文件.

This is a wonderful compiler generated map file analysis/explorer/viewer tool. Check if you can explore gcc generated map file.

amap :分析 32 位 Visual Studio 编译器生成的 .MAP 文件并报告数据和代码使用的内存量的工具.此应用还可以读取和分析由 Xbox360、Wii 和 PS3 编译器生成的 MAP 文件.

相关文章