COMPUTER SCIENCE AND ENGINEERING
COMPILER DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
pointer
|
|
stack
|
|
queue
|
|
value
|
Detailed explanation-1: -Parenthesized numbers represent pointers into the triple structure itself. Indirect Triples: In this representation, pointers are used to point at the listings of all references to computations that were made and stored. It is easier to rearrange code in this representation.
Detailed explanation-2: -Which of the following does an address code involve? Explanation: In computer science, three-address is an intermediate code used by optimizing compilers to aid in the implementation of code-improving transformations.
Detailed explanation-3: -Syntax Analysis: Basically, in the second phase, it analyses the syntactical structure and inspects if the given input is correct or not in terms of programming syntax. It accepts tokens as input and provides a parse tree as output. It is also known as parsing in a compiler.
Detailed explanation-4: -Syntax-directed translation provides a method for describing an input-output mapping and that description is independent of implementation. To implement Syntax Directed Translation, It can use a stack that consists of a pair of arrays STATE & VAL.
Detailed explanation-5: -There are two types of Parsing: The Top-down Parsing. The Bottom-up Parsing.