This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Accessing Global variables
- From: zahed khurasani <sdzahed at gmail dot com>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Mon, 26 Mar 2012 10:44:48 -0400
- Subject: Accessing Global variables
Hi,
I know that we can access the function parameters using DECL_ARGUMENTS
and similary we can use gimple_bind_vars to access other variable
declarations attached to a bind expression. But how about Global
definitions? How can I access variables defined outside the scope of
any function.
Thanks for your help.
Zahed