R.B.
R.B.

Reputation: 255

Generating a state diagram from legacy C code

I'm looking into visualizing a large amount of C code, preferably having its state machine reverse engineered and graphed out for me diagrammatically.

I've looked into Graphviz and Dot, and it appears that I could probably stitch something together from the API to do the job. But honestly I kind of expected that it would have been a common enough task that someone may have already come up with a tool to do the task.

Does anyone have experience with this? Any solutions you can recommend or tools that exist that I've overlooked?

Thank you.

Upvotes: 2

Views: 3702

Answers (1)

SomeWittyUsername
SomeWittyUsername

Reputation: 18338

You can try the Enterprise Architect but that's really not a good idea and in any case you'll need to do a lot of manual changes to the result. It's more or less like relying on an automatic translator to speak for you in the language you don't know. It's especially problematic for procedural type of code, like you probably have if it's in C.

Upvotes: 1

Related Questions