Egypt is a simple tool for creating call graphs of C programs. Egypt neither analyzes source code nor lays out graphs. Instead, it leaves the source code analysis to GCC and the graph layout to Graphviz, both of which are better at their respective jobs than egypt itself could ever hope to be. Egypt is simply a very small Perl script that glues these existing tools together.
The most recent release of egypt is version 1.10, which can be downloaded here. Online documentation is here. You will also need gcc, Perl, and Graphviz.
To install, extract the compressed tar file, cd to the egypt directory, and type
perl Makefile.PL
make
make install
Then type
man egyptor
perldoc egypt
for additional information.
Here is an example of a call graph generated using egypt:

埃及是一个小型Perl脚本,它将C程序的调用图生成任务委托给GCC进行源代码分析和Graphviz进行图形布局。最近的版本1.10提供了完整的安装和使用指南,包括必要的依赖项如gcc、Perl和Graphviz。
2950

被折叠的 条评论
为什么被折叠?



