Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reverse engineering from c code to sequence chart

Tags:

c

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

like image 266
user342773 Avatar asked Jan 31 '26 12:01

user342773


1 Answers

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 http://pedro.larroy.com/files/example.png

like image 129
piotr Avatar answered Feb 03 '26 04:02

piotr