Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

What are the symbol table requirements ? What are the demerits in the uniform structure of symbol table ?

Symbol Table Requirements:

  1. Structural Flexibility: The symbol table should be able to store all necessary information about identifiers based on how they are used in the program.
  2. Fast Lookup/Search: Searching for entries in the symbol table should be quick, so that programs can efficiently access information about identifiers.
  3. Efficient Space Utilization: The symbol table should be able to adjust its size dynamically to use memory efficiently.
  4. Handling Language Characteristics: It should be capable of handling language features like scoping and implicit declaration, which affect how identifiers are treated.

Demerits of Uniform Structure:

  1. Limited Name Length: If the symbol table has a fixed limit on the length of identifier names it can store, longer names won’t fit, causing problems.
  2. Waste of Space: If the symbol table reserves a fixed amount of space for each entry, shorter names will leave unused space, which is inefficient.

Leave a Comment