summaryrefslogtreecommitdiff
path: root/extra/stack_analyzer/README.md
blob: 472b4a91edb4ec11895545af80c5dc4467321740 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Stack Size Analysis Tool for EC Firmware
========================================

This tool does static analysis on EC firmwares to get the maximum stack usage of
each function and task. The maximum stack usage of a function includes the stack
used by itself and the functions it calls.

Usage
-----

Make sure the firmware of your target board has been built.

In `src/platform/ec`, run
```
make BOARD=${BOARD} SECTION=${SECTION} analyzestack
```
The `${SECTION}` can be `RO` or `RW`.