Is there a way to automatically generate the data flow diagrams and flowcharts? [closed]
Asked Answered
I

4

17

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.

Iconoclast answered 1/5, 2009 at 17:51 Comment(2)
Can you elaborate a bit on where the data for the diagrams is supposed to come from? Do you expect the program to do a static analysis of your code before to extract the data?Recitativo
Actually what I need to do is to better understand the original source codes so as to modify, improve & upgrade them, e.g., to add extra new features and remove obsolescences. I hope I can track the data flow among functions, procedures, data sources/sinks. Kinda static code analysis.Iconoclast
T
11

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.

Thalassa answered 1/5, 2009 at 18:6 Comment(0)
I
3

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

Iconoclast answered 2/5, 2009 at 16:6 Comment(0)
S
0

You can try code2flow:

https://code2flow.com

It convert your code to Flowchart.

Sigurd answered 15/6, 2022 at 13:29 Comment(0)
G
-1

Dia is a program that resembles Microsoft Visio. It isn't as smooth, but it gets the job done. I always use this professionally when Visio isn't available. This is mainly for UML and Flowcharts, exports to png, and vectors, and I think PDF's as well.

Gemmule answered 11/4, 2014 at 15:54 Comment(1)
The user (as I) is looking for a way to automatically convert source code into a flow chart. I looked at the Dia documentation and didn't see anything that says it supports automated source to flow charts.Hygrometer

© 2022 - 2024 — McMap. All rights reserved.