1. What is intermediate code?
Ans: During the translation of a source program into the object code for a target machine, a compiler may generate a middle-level language code, which is known as intermediate code or intermediate text. The complexity of this code lies between the source language code and the object code. The intermediate code can be represented in the form of postfix notation, syntax tree, directed acyclic graph (DAG), three-address code, quadruples, and triples.
2. Write down the benefits of using an intermediate code generation over direct code generation?
Ans: The benefits of using an intermediate code over direct code generation are as follows:
Intermediate code is machine independent, which ...