MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPILER DESIGN

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What are the issues in the design of code generator?
A
Input to the generator
B
Target programs
C
Memory management
D
All the above
Explanation: 

Detailed explanation-1: -The optimization must be correct, it must not, in any way, change the meaning of the program. Optimization should increase the speed and performance of the program. The compilation time must be kept reasonable. The optimization process should not delay the overall compiling process.

Detailed explanation-2: -Instruction Selection: Efficient and low cost instruction selection is important to obtain efficient code. When we consider the efficiency of target machine then the instruction speed and machine idioms are important factors. The quality of the generated code can be determined by its speed and size.

Detailed explanation-3: -Automatic code generation use cases Teams need to consider the tradeoffs between reusable blocks of code to accomplish a task and automated code generation. Any kind of repetitive coding can slow development progress and introduce mistakes. Developers can mitigate these flaws with functions or by code generation.

There is 1 question to complete.