summaryrefslogtreecommitdiff
path: root/FreeRTOS/Test/VeriFast/scripts/callgraph.md
diff options
context:
space:
mode:
Diffstat (limited to 'FreeRTOS/Test/VeriFast/scripts/callgraph.md')
-rw-r--r--FreeRTOS/Test/VeriFast/scripts/callgraph.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/FreeRTOS/Test/VeriFast/scripts/callgraph.md b/FreeRTOS/Test/VeriFast/scripts/callgraph.md
new file mode 100644
index 000000000..5316a6121
--- /dev/null
+++ b/FreeRTOS/Test/VeriFast/scripts/callgraph.md
@@ -0,0 +1,20 @@
+# Generate callgraph
+
+## Requirements
+
+ - python3
+ - pycparser
+ - graphviz/dot
+ - [inconsolata](https://fonts.google.com/specimen/Inconsolata)
+
+## Instructions
+
+```
+cd scripts
+git clone https://github.com/eliben/pycparser.git #< you need this for pycparser's libc headers even if pycparser is installed
+mkdir fake_include
+touch fake_include/threading.h
+gcc -E -I pycparser/utils/fake_libc_include/ -I ../include/ -I fake_include/ ../queue/*.c > out.pp
+./callgraph.py > out.dot
+dot -Nfontname=inconsolata -Tpng -o callgraph.png out.dot
+```