Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to automatically generate the data flow diagrams and flowcharts?

I am recently working on some long and obscure codes written by some other smart guys. I'm thinking of generating the Data Flow Diagrams and the Flowcharts to facilitate my work. Is there any kinds of software that can do this job automatically? P.S. Most of the codes are in C and Fortran.

like image 791
Zatuch Avatar asked May 01 '09 17:05

Zatuch


2 Answers

Dataflow diagrams are harder because they require most of a compiler front end to derive the basic information needed to draw them. But you can get call and caller graphs as well as some kinds of entity relationship diagrams out of Doxygen with Graphviz.

Also, Graphviz is generally useful for drawing all kinds of graphs with readable layouts from raw data. It is easy to walk a tree structure and output a description in the DOT language for Graphviz to draw, for example.

Set Doxygen up with the right options, and turn it loose on the legacy code and you will get the beginnings of an internals document to help find your way around too.

like image 167
RBerteig Avatar answered Sep 23 '22 08:09

RBerteig


"Code Visual to Flowchart" from FateSoftware may also obe of help.

like image 42
Zatuch Avatar answered Sep 19 '22 08:09

Zatuch