Professional Documents
Culture Documents
DLP VIVA Questions and Answers
DLP VIVA Questions and Answers
4. What is pattern?
A set of strings in the input for which the same token is produced as output.
This set of strings is described by a rule called a pattern associated with the token.
6. Phase of compiler.
Lexical Analyzer, Syntax Analyzer, Semantic Analyzer, Intermediate code
generator, machine independent code optimizer, code generator and machine
dependent code optimizer.
8. What is LALR?
LALR parser or Look-Ahead LR parser is a simplified version of a canonical LR
parser, to parse a text according to a set of production rules specified by a formal
grammar for a computer language.
1
DLP VIVA Questions and Answers
9. What is LR in LALR?
LR means left-to-right, rightmost derivation.
13.What is DAG?
The Directed Acyclic Graph (DAG) is used to represent the structure of basic
blocks, to visualize the flow of values between basic blocks, and to provide
optimization techniques in the basic block.
2
DLP VIVA Questions and Answers
3
DLP VIVA Questions and Answers
4
DLP VIVA Questions and Answers