Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>StackMap — GCC Stack Usage AnalyzerNew to Visual Studio Code? Get it now.
StackMap — GCC Stack Usage Analyzer

StackMap — GCC Stack Usage Analyzer

Mohamed Hakeem

|
7 installs
| (0) | Free
Analyze GCC -fstack-usage (.su) files: rank functions by stack bytes, flag dynamic/unbounded frames, scan entire build folders, and export CSV.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

StackMap — GCC Stack Usage Analyzer

StackMap Preview

Analyze GCC -fstack-usage (.su) files directly in VS Code to catch stack-heavy functions and stack-overflow risks before they hit your target MCU.


Key Features

  • Automatic Ranking — opens .su files in a sortable table ranked by stack frame size (bytes) with visual bars.
  • Safety Badges — color-codes static (green), bounded (amber), and dynamic / unbounded (red) stack allocations, with summary cards for total functions, worst-case frame, and dynamic count.
  • Scan Entire Build Folder — click Scan Build Folder (.su) to recursively aggregate every .su file in your build/ directory into one global ranked table.
  • Filter & Export — live search by function name, source file, or kind, and Export CSV for stack budget reviews.

Generating .su Files with GCC

Add -fstack-usage to your CFLAGS in CMake or Makefile:

arm-none-eabi-gcc -fstack-usage ...

EmbeddedMap Suite

Part of the EmbeddedMap Pack (MohamedHakeem.embeddedmap-pack):

  • HexMap (hexmap-viewer) · LinkMap (linkmap-ld) · MemMap (ldmap-syntax) · ElfMap (elfmap-viewer) · LinMap (ldf-syntax-analyzer) · CanMap (canmap-dbc) · StackMap (stackmap-su) · SvdMap (svdmap-svd)

License

MIT — see LICENSE.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft