This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Symbol table
- From: Jim Wilson <wilson at specifixinc dot com>
- To: "SRUTHY C.N." <csy2p100 at nitc dot ac dot in>
- Cc: gcc at gnu dot org, gcc at gcc dot gnu dot org
- Date: 13 Oct 2003 22:54:11 -0700
- Subject: Re: Symbol table
- References: <2111.210.212.228.79.1066104164.webmail@ebox.nitc.ac.in>
On Mon, 2003-10-13 at 21:02, SRUTHY C.N. wrote:
> Is there any symbol table representation in gcc like RTL file? If
> there is , then how to get it? I am not asking about the symbol table for
> the object code generated, which I have seen. I am asking about symbol
> table in the front end.
We don't have a dump file for the symbol tables. Debugging symbol
tables is not as much of a problem as debugging optimization passes, so
we have never really needed dump files for them.
In the C family front ends, we use IDENTIFIER_NODE to hold info about
symbols. get_identifier will return the IDENTIFIER_NODE for a string
representing a symbol name. lookup_name will give you the *_DECL in
scope for an IDENTIFIER_NODE. See also the c_scope structure in
c-decl.c.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com