Chirag Tayal
Chirag Tayal

Reputation: 459

Compiler design

When code is compiled we use symbol table to store data. Is this symbol table containing data is reused in recompilation or new symbol table is created?

Upvotes: 2

Views: 225

Answers (1)

Simon Richter
Simon Richter

Reputation: 29618

Yes.

The compiler implementor defines whether information is reused. Some compilers do that for optimisation purposes or because there is a special interest (e.g. a function needs to be replaced without modifying the rest of the program).

Upvotes: 2

Related Questions