This is the mail archive of the gcc@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]

Re: Symbol table


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


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