CodeWheel:

A Hack of the Linux Graphing Project to work with Anything

To understand what Rusty Russel's Linux Graphing Project is, you should read the web pages for the Original Version of the Program and the Most Recent Version of the Program. In a nutshell, it takes the *.c files of the Linux Kernel and renders some graphical versions of them, with all sorts of neat lines and colors and shapes, which vaguely resemble the flow of the programs. It takes the code, analyzes it, and generates a series of postscript images, which are then further combined into a massive page of all the different functions and *.c files. It looks really amazing, and it's best printed out on lots of pages of paper which you then stitch together.

I wanted to use this program with some code my friends had worked on, so they'd have neat things they could print and put on their office walls. Within a short time, I discovered how geared towards the linux kernel Rusty's work was, so it ended up being quite a feast of trial-and-error to make it so just a single directory of code could be used to generate an image. So, this page has been put up so people can download my hack. You definitely want the original if you want to see all the cool things his programs can do, especially draw_arrangement, which is a personal favorite.

Here are some examples of the output of this program, some of which have been inverted by Photoshop (the ones in black):

TinyMUSH 3.0 Source Code
Sendmail 8.11.2 Source Code
Sendmail 8.11.2 Source Code, Absolutely Friggin Huge

If this sounds interesting to you, download the hacked script here. Obviously, this thing is released under the GPL. Enjoy!

Download the codewheel.tar.gz here (40k).