Dumping CPP symbol table stats

Victor Norman vnorman@calvin.edu
Wed Feb 24 19:13:00 GMT 2010


I would like to tweak cpp to dump some usage stats from its symbol  
table -- like dumping which #defines were not used at all, etc.

I'm wondering if someone can help me figure out where in the code I  
would look to start to do this.

(I know that I'll need to add a command-line argument, and I'm sure I  
could figure that part out.)
Thanks.

Prof. Victor Norman
Computer Science
Calvin College
vnorman@calvin.edu
-----
"A designer knows he has achieved perfection not when there is nothing  
left to add, but when there is nothing left to take away." -- Antoine  
de Saint Exupéry









More information about the Gcc mailing list