tags:

views:

49

answers:

2

Hi All,

I have a c code and I want to extract some patterns of code which contains instructions of communication etc and build a sequence chart from that.

Is there any way I can do that?

Thanks

+1  A: 

You can use pic2plot which is part of GNU plotutils. You need log/trace what talks to what, to a file and then you can render it with pic2plot. I've done this for a python program, but there is no reason why you can't do that with a C program.

sequence diagram

see http://www.umlgraph.org/

Eddy Pronk
Also, have a look at http://trace2uml.tigris.org/
Eddy Pronk
+1  A: 

I strongly recommend to use doxygen with the following options:

EXTRACT_ALL            = YES
CALL_GRAPH             = YES
CALLER_GRAPH           = YES
GRAPHICAL_HIERARCHY    = YES

You will get a very nice call and caller graphs of functions which can help a great deal with understanding the code. A call graph is more common and useful for C code than a sequence chart.

call graph

piotr