MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPILER DESIGN

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
It is known as the back-end of the compiler.
A
Analysis Phase
B
Synthesis
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -Known as the back-end of the compiler, the synthesis phase generates the target program with the help of intermediate source code representation and symbol table.

Detailed explanation-2: -In compilers, the frontend translates a computer programming source code into an intermediate representation, and the backend works with the intermediate representation to produce code in a computer output language. The backend usually optimizes to produce code that runs faster.

Detailed explanation-3: -The synthesis phase is also known as the back-end of the compiler. The compiler generates the target program with the help of intermediate source code representation and symbol table during the synthesis phase.

Detailed explanation-4: -In computer science, bootstrapping is the technique for producing a self-compiling compiler – that is, a compiler (or assembler) written in the source programming language that it intends to compile.

Detailed explanation-5: -Syntax analysis is the second phase of compilation process. It takes tokens as input and generates a parse tree as output. In syntax analysis phase, the parser checks that the expression made by the tokens is syntactically correct or not.

There is 1 question to complete.