Tamas Rudnai wrote: > This would do the trick I think: >=20 > $ 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 it and I find it.) Gerhard > On Tue, Aug 2, 2011 at 1:13 AM, William "Chops" Westfield wrote: >=20 >> In particular, I'd like to figure out all the files that are #included >> from the top-level code, after accounting for comments and such. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .