4

Are there existing algorithm visualization tool for C programs? like visualizing an execution of a C program through animated execution stack.

3
  • kind of debugger but with animation Commented May 6, 2011 at 6:58
  • funny silico, but I'm not referring to a static animation. Commented May 6, 2011 at 7:00
  • Some debuggers colour code or flash the fields that were changed by the last step/next/run-to-cursor operation, and some even have a undo / redo capability - likely OS/CPU specific (which you haven't specified). If you expect something like a powerpoint presentation, then I've never heard of anything - the potential memory/register changes tend to be too numerous and complicated to automatically summarise in any meaningful way. Commented May 6, 2011 at 9:00

5 Answers 5

3

I recommend ddd for fancy GUI debugging visualizations. It visualizes all the data structures and makes pretty graphs and gives you access to your regular debugger.

Sign up to request clarification or add additional context in comments.

Comments

2

Oracle Studio for Linux (former Sun Studio) Performance Analyzer has the timeline feature. That is exactly an animated stack representation.

Like on this screenshot:

enter image description here

Comments

1

For C++, there are educational program visualizers that you might want to try:

  • VIP (Visual InterPreter), you should be able to visualize your own code by editing one of the examples on the site. Supports only a C++ subset, though.
  • The Teaching Machine, can be used as a Java program or an Eclipse plugin.

EDIT: Updated the The Teaching Machine link.

1 Comment

The Teaching Machine is a dead link.
0

You can try ollydbg with the ollyflow plugin, or have a look at IDA with its call graphing plugin (there are other plugins along these lines as well).

Comments

0

C Tutor - Visualize C code execution to learn C online

Is a great tool for visualizing the workflow of your C/C++ code - as well as a number of other languages. To my knowledge you cannot enter any command line arguments, but that's the only limitation I can think of. The benefits are that it is free, web based, and very intuitive.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.