This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GCC plugin question


Hi,

I'm looking to create a GCC plugin. I've had a look at some examples
so I have a general idea of their nature.

I'm trying to analyze a C source file and dump all globals in the
file, such as variable and function declarations for further analysis.
I would like to get their name, and source file locations.

Can anyone point me to some documentation on how to do this, such as,
what pass would be appropriate?

Regards,
Vanush


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]