RE:Symbol tables and scopes

"Jatin Bhateja" <jatin.bhateja@conexant.com>
11 Feb 2006 13:39:29 -0500

          From comp.compilers

Related articles
Symbol tables and scopes DrDiettrich@compuserve.de (Hans-Peter Diettrich) (2006-01-28)
Re: Symbol tables and scopes david@tribble.com (David R Tribble) (2006-02-02)
Re: Symbol tables and scopes cfc@shell01.TheWorld.com (Chris F Clark) (2006-02-03)
Re: Symbol tables and scopes gdr@integrable-solutions.net (Gabriel Dos Reis) (2006-02-06)
RE:Symbol tables and scopes jatin.bhateja@conexant.com (Jatin Bhateja) (2006-02-11)
| List of all articles for this month |
From: "Jatin Bhateja" <jatin.bhateja@conexant.com>
Newsgroups: comp.compilers
Date: 11 Feb 2006 13:39:29 -0500
Organization: Compilers Central
References: 06-01-101 06-02-015 06-02-021 06-02-044
Keywords: symbols
Posted-Date: 11 Feb 2006 13:39:29 EST

Hi,


I think before considering any design you should be clear that the
language for which you are designing such symbol table design is
static scoped or dynamic scoped language.


As in case of dynamic scope language what ever you want i.e. symbol
should be searched form innermost function to the outer most function
in function nesting depth is done at run time using runtime stack and
there is different approach to tackle it i.e. either using the
displays (array of static pointers of activation record) or by
following the static link in each activation record to search the
occurrence of variable in the activation above it in run time stack.


Thanks and Best Regards,
 
Jatin Bhateja 
Conexant Systems Inc
FC-2&4, Sector 16A,
Noida-201301, UP


Tel: 91 120 2512833, Extn @2408


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.