I have ac 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
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.
(source: umlgraph.org )
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.