public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Symbol table
@ 2003-10-14  7:22 SRUTHY C.N.
  2003-10-14  7:30 ` SRUTHY C.N.
  2003-10-14  8:01 ` Jim Wilson
  0 siblings, 2 replies; 7+ messages in thread
From: SRUTHY C.N. @ 2003-10-14  7:22 UTC (permalink / raw)
  To: gcc, gcc, wilson



Sir,
     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.
     please reply me..
                                                       Thanking you,
                                                           SRUTHY C.N.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Symbol table
  2003-10-14  7:22 Symbol table SRUTHY C.N.
@ 2003-10-14  7:30 ` SRUTHY C.N.
  2003-10-14  8:01 ` Jim Wilson
  1 sibling, 0 replies; 7+ messages in thread
From: SRUTHY C.N. @ 2003-10-14  7:30 UTC (permalink / raw)
  To: gcc, gcc, wilson



Sir,
     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.
     please reply me..
                                                       Thanking you,
                                                           SRUTHY C.N.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Symbol table
  2003-10-14  7:22 Symbol table SRUTHY C.N.
  2003-10-14  7:30 ` SRUTHY C.N.
@ 2003-10-14  8:01 ` Jim Wilson
  2003-10-14  8:07   ` Jim Wilson
  1 sibling, 1 reply; 7+ messages in thread
From: Jim Wilson @ 2003-10-14  8:01 UTC (permalink / raw)
  To: SRUTHY C.N.; +Cc: gcc, gcc

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Symbol table
  2003-10-14  8:01 ` Jim Wilson
@ 2003-10-14  8:07   ` Jim Wilson
  0 siblings, 0 replies; 7+ messages in thread
From: Jim Wilson @ 2003-10-14  8:07 UTC (permalink / raw)
  To: SRUTHY C.N.; +Cc: gcc, gcc

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Symbol table
  2003-10-14 16:42 Robert Dewar
@ 2003-10-14 16:44 ` Robert Dewar
  0 siblings, 0 replies; 7+ messages in thread
From: Robert Dewar @ 2003-10-14 16:44 UTC (permalink / raw)
  To: csy2p100, wilson; +Cc: gcc, gcc

> We don't have a dump file for the symbol tables

One thing to realize is that gcc is a family of front ends. This question needs
to be asked separately for each front end. In GNAT, the switch -gnatdt dumps the
entire intermediate representation including the symbol table, and -gnatde
dumps the entity table (which is probably as close as you can come to what you
have in mind).

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Symbol table
@ 2003-10-14 16:42 Robert Dewar
  2003-10-14 16:44 ` Robert Dewar
  0 siblings, 1 reply; 7+ messages in thread
From: Robert Dewar @ 2003-10-14 16:42 UTC (permalink / raw)
  To: csy2p100, wilson; +Cc: gcc, gcc

> We don't have a dump file for the symbol tables

One thing to realize is that gcc is a family of front ends. This question needs
to be asked separately for each front end. In GNAT, the switch -gnatdt dumps the
entire intermediate representation including the symbol table, and -gnatde
dumps the entity table (which is probably as close as you can come to what you
have in mind).

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Symbol Table
@ 2002-07-22  7:35 yoshi ge
  0 siblings, 0 replies; 7+ messages in thread
From: yoshi ge @ 2002-07-22  7:35 UTC (permalink / raw)
  To: gcc

Dear All,

     Please let me know, In gcc how/where is the
Symbol table is Creating/keeping?

     In which file I can find the source.

Regards,
Moriz


________________________________________________________________________
Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
       visit http://in.autos.yahoo.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-10-14 13:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-14  7:22 Symbol table SRUTHY C.N.
2003-10-14  7:30 ` SRUTHY C.N.
2003-10-14  8:01 ` Jim Wilson
2003-10-14  8:07   ` Jim Wilson
  -- strict thread matches above, loose matches on Subject: below --
2003-10-14 16:42 Robert Dewar
2003-10-14 16:44 ` Robert Dewar
2002-07-22  7:35 Symbol Table yoshi ge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).