parse_map
Parse GNU ld, Keil, or IAR .map files to report Flash/RAM segment usage, symbol tables, and suspicious large symbols. Use it to find what is consuming RAM or stack.
Instructions
解析 .map 文件:段占用(Flash/RAM)、符号表、可疑大符号(查大数组/大缓冲)。
支持 GNU ld / Keil / IAR 三种格式,自动识别;认不出会明说,不猜。 parse_map("build/app.map") 查"RAM 怎么爆了""哪个大数组吃栈"时用。结果里的符号大小若是「推断」值, 表示该 map 不记 size,大小由相邻符号地址差推出(可能偏大)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| top_n | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |