How to generate a program dependency graph for program C?

I want to generate a Program Dependency Graph (PDG) against the C source code. I found documents that explain how to do this, but they all used the commercial CodeSurfer tool.

Are there any free tools that do this?

+8
c ++ c graph static-analysis
source share
2 answers

Frama-C is an open source static analysis framework that can calculate a sound graph of a program’s dependency for C programs. Its slicing plug-in uses the resulting PDG. Slicing and PDG calculations were discussed in February 2010 on the mailing list (messages from jung, myung-jin and their responses).

You can also watch NIST Unravel or Georgia Tech Aristotle . Both Valsoft at the University of Karlsruhe, and Loyola Assistant Surgeon , may also be worth a look.

+7
source share

Doxygen can generate caller and callle graphs functions, as well as all the functions used in your program. This may not be exactly what you are looking for, but it may provide some useful data.

SourceMonitor is a metrics tool that can display the complexity of a function and program, as well as complexity charts.

Both tools are free.

0
source share

All Articles