I want to create a few illustrations for one of my c++ related articles. This illustration must show how different structures are placed in memory ( variables, vtable, pointers etc ). I want illustrations to look something like this, like this or like this. Of course i can draw such illustrations by hand using gimp/photoshop or writer/msword. But i need a few dozens of them, so drawing them manually will take a lot of time :(. Is it some software ( preferrably free ), script or tool available that can help me to create such illustrations fast?
It's seems to be xfig figures. Used by every good scientist in their articles :)
I used it several times for paper, report and other stuff. Every phd thesis in computer science are full of xfig pictures :)
Of course, it's open source, very powerfull, maybe hard to begin for people not used to unix old school apps. But really very powerfull imo and lots of doc on the web.
Maybe ImageMagick could come your way. I found it pretty useful when bulk-processing images.
Is the layout of structs defined by the C++ standard? I would suppose that it is compiler dependent.
Any vector drawing or diagramming tool will do this sort of illustration. Examples of open-source ones are:
Dia - a diagramming tool that does the same sort of thing as Visio. It is released under the GPL, Linux/Unix and Windows versions are available.
Inkscape - a vector drawing tool that does the same sort of thing as Adobe Illustrator or Corel draw. Again, this runs on Windows, Linux/Unix and Mac OSX.
Xfig - this is a diagramming tool. It's somewhat old-school and has a different user interface to a modern direct-manipulation one. However, it's quite powerful and runs very quickly. As far as I am aware, it uses Xlib, so it's quite closely bound to X and only runs on X-based platforms such as Linux/Unix or Cygwin.