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

非 Y 不嫁゛ 提交于 2019-11-30 03:18:51

问题


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.


回答1:


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.




回答2:


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




回答3:


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.



来源:https://stackoverflow.com/questions/812458/is-there-a-way-to-automatically-generate-the-data-flow-diagrams-and-flowcharts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!