>> On Tue, Aug 2, 2011 at 1:13 AM, William "Chops" Westfield > >wrote: >> >>> In particular, I'd like to figure out all the files that are =20 >>> #included >>> from the top-level code, after accounting for comments and such. >> $ gcc -fpreprocessed -dI -E test.c | grep -e "#include" > > gcc also has an option to create a file with a list of all included > files. (I can't remember it right now; let me know if you can't find =20 > it > and I find it.) Ah. For generating the dependancy lists for Makefiles and such. This is apparently "-M" (with a bunch of sub-options.) Thanks Bill W --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .