Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

c code traversal

0 views
Skip to first unread message

sinbad

unread,
Jun 22, 2009, 6:00:37 PM6/22/09
to
Hi,

Is there a tool or way to get the data struct relation by statically/
dynamically traversing the C code.

struct a {
struct b *sa;
struct c *sb;
int ia, ib;
};

struct b {
int ic;
struct d *sc;
};

struct d {
int id;
struct b *se;
};

struct c {
int ie;
};
for the above, i need to get a graph as follows

--------------------
| |
struct a | |
|-> sa ---------> struct b |
| |-------> struct d --|
|
|-> sb ---------> struct c;

Maxim Yegorushkin

unread,
Jun 23, 2009, 12:59:04 PM6/23/09
to

There are UML tools out there that can build class diagrams out of C/C++ source
files. See column "Reverse engineered languages" at
http://en.wikipedia.org/wiki/List_of_UML_tools


--
Max

0 new messages