Reputation: 30034
What is the function of symbol table in front-end and back-end of compiler?
Upvotes: 0
Views: 1911
Reputation: 1589
Symbol table stores the information about the symbols you use in your program.
For example, consider a simple C declaration statement.
int a;
Information regarding 'a', are
Likewise for every symbol you use in your program, the information will be updated in the symbol table for the translation to low level language.
Use of symbol tables lie mostly in front-end, in the back-end it may be used to handle the symbol names wherever necessary (like printing module). But I am not sure though!
Upvotes: 3