On 6 May 2011 12:25, ankit7777 wrote: > > Problem Statement : Given a C file which has several macros defined (eg. > #define MACRO 10) . I need to know what all macros are defined and their > usage point(eg. line number) in the code. > > Need to know this information during or after gcc pre-processing phase. > > Possible solution may dump this macro information in some file. > > Is there any way that gcc can dump this information and if yes how?
Please don't cross-post to both the gcc and gcc-help lists.