tags:

views:

144

answers:

4

Hi,

Is there any tool to show diagrammatic rep of flow of program if we input a C file?

Thanks.

+1  A: 

If it doesn't have to strictly be a graphical flow chart, GNU cflow indicates the entire call tree for C source files.

Mark Rushakoff
+2  A: 

I have used Visustin in the past

Perpetualcoder
A: 

Software Blacksmiths has sold one commercially for a long time. I can't say much about it currently though -- it's probably a fair guess that the OS/2 version I used has been discontinued by now. Software Blacksmiths still appears to be in business though -- a quick check turns up a web site anyway.

Glancing at the web site, it looks like relatively little has changed since I used it (even the OS/2 version still seems to be available). That being the case, I'd say it falls into the "fairly harmless" category, which is the best any flow charting tool can achieve.

Jerry Coffin
+6  A: 

For an open source workflow to do this, use GNU cflow to generate a call graph in text format. Then Cflow2vcg can convert the output into an intermediate graph format that Graphviz can use to generate an image for you.

Karmastan