Prefetch Technologies // Keeping your cache lines cozy

Saving CPP processed files

My friend Clay sent me a cool tip this week. If you would like to save files that have been processed with cpp, you can set the CFLAGS "-save-temps" option:

$ export CFLAGS=-save-temps
$ make

This will cause a bunch of .i files to be created, which can simplify the process of figuring out how applications work (going macro hunting is no fun at all!).