0

I am wondering if there is a graphical tool to decode data structures from multiple files? What I mean is, let us say we have the following

typedef struct herStruct;
 ...
typedef struct myStruct
{
   void* hisStruct;
   herStruct* ptr;
}myStruct;

It would have been great if there was a tool where in, we pass the header files and c files and the tool would give a graphical representation of the various structures used. Wishful thinking I know. I am going through linux drivers (custom drivers) and it feels convoluted understanding the various structures. How does one understand someone else's code which has so many structures and is convoluted (and not many comments!). I tried to draw it myself, but did not go too far.

Cœur
  • 37,241
  • 25
  • 195
  • 267
kishore .
  • 2,123
  • 2
  • 16
  • 12

1 Answers1

1

You can try using Doxygen/GraphViz to generate visualizations. Take a look at this question.

Community
  • 1
  • 1
Buddy
  • 10,874
  • 5
  • 41
  • 58
  • Thanks!.I will take a look at it. The linux driver i am working with doesnt have doxygen. But looks like i can feed the source files to doxygen tool to generate the required uml files and then use graphviz. – kishore . Jul 20 '15 at 19:42