This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
GCC plugin question
- From: Vanush Vaswani <vanush at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 28 Aug 2015 17:38:10 +1000
- Subject: GCC plugin question
- Authentication-results: sourceware.org; auth=none
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