Tag archive for "symbol table"
This function searches for current identifier in specified symbol table. The speed of this function and the design of symbol tables (hash function) have a significant impact on the speed of the compiler. Hash function splits identifiers into several linked lists so only one list is checked when searching for identifier. However, all the identifiers …
After each module is compiled the symbol tables are compacted to remove unused space.
Every Turbo Pascal module (program or unit) can use other units. Processing them is one of the trickiest parts of Turbo Pascal compiler.
Turbo Pascal calculates a checksum of public identifiers for every unit to quickly check if something has been changed.