Are there existing algorithm visualization tool for C programs? like visualizing an execution of a C program through animated execution stack.
-
kind of debugger but with animationccc-– ccc-2011-05-06 06:58:10 +00:00Commented May 6, 2011 at 6:58
-
funny silico, but I'm not referring to a static animation.ccc-– ccc-2011-05-06 07:00:28 +00:00Commented 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.Tony Delroy– Tony Delroy2011-05-06 09:00:53 +00:00Commented May 6, 2011 at 9:00
5 Answers
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.
Comments
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
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
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.
