Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automatic create function block diagram from ansi c code [closed]

Tags:

c

diagram

Does anyone know a tool that is able to create "function diagrams" from ansi c code?

By "function diagram" I mean a chart that represents an overview of files, functions and their relations. I imagine it to be something like a circut diagram.

Eg. if have the following code:

//MyProgram.c
int main(int argc, char** argv)
{
    Foo();
    Bar();
    return 0;
}

//Slave.h
void Foo();
void Bar();

The chart would be something like the following picture:

Function relation diagram

Does it have an official name? Dependency diagram, perhaps?

I've looked at bit on Doxygen. But that one clearly states that: Doxygen has built-in support to generate inheritance diagrams for C++ classes. Same thing with many UML tools. I don't have any classes. Although my c files may come close.

like image 487
Illishar Avatar asked Jan 19 '12 09:01

Illishar


1 Answers

What you refers is called Call Graph.

There's a list of tools to generate them: http://en.wikipedia.org/wiki/Call_graph#Software

like image 93
qiao Avatar answered Sep 28 '22 02:09

qiao