]> begriffs open source - cmsis-freertos/blob - Test/VeriFast/scripts/callgraph.md
Update README.md - branch main is now the base branch
[cmsis-freertos] / Test / VeriFast / scripts / callgraph.md
1 # Generate callgraph
2
3 ## Requirements
4
5   - python3
6   - pycparser
7   - graphviz/dot
8   - [inconsolata](https://fonts.google.com/specimen/Inconsolata)
9
10 ## Instructions
11
12 ```
13 cd scripts
14 git clone https://github.com/eliben/pycparser.git #< you need this for pycparser's libc headers even if pycparser is installed
15 mkdir fake_include
16 touch fake_include/threading.h
17 gcc -E -I pycparser/utils/fake_libc_include/ -I ../include/ -I fake_include/ ../queue/*.c > out.pp
18 ./callgraph.py > out.dot
19 dot -Nfontname=inconsolata -Tpng -o callgraph.png out.dot
20 ```