Explain book keeping in compiler construction.
Answers
Answer:
Table Management OR Book-keeping :- A. compiler needs to collect information about all the data objects that appear in the source program. The information about data objects is collected by the early phases of the compiler-lexical and syntactic analyzers.
The four fundamental steps of bookkeeping are as follows: Analyzing financial transactions and allocating them to particular accounts, creating original journal entries that credit and debit the proper accounts, posting entries to ledger accounts, and making adjustments at the end of each accounting period are all steps in the accounting process.
A compiler must gather data about each data object that appears in the source code. The lexical and syntactic analyzers in the early stages of the compiler are responsible for gathering information about data objects.
Verifying and enforcing type constraints in values is the process of type checking. A compiler is required to ensure that the source code complies with the language's type rules as well as its syntactic and semantic conventions.
Compilers are specialised software tools that convert the source code of one programming language into machine code, bytecode, or another programming language. Typically, the source code is written in a high-level, readable language like Java or C++.
For more such questions on Compiler: https://brainly.in/question/22040316
#SPJ3