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!).

This article was posted by Matty on 2005-12-03 11:38:00 -0400 -0400