Beginner
Compilers & Programming Language Theory
Q12 / 100
What is instruction selection in code generation?
Correct! Well done.
Incorrect.
The correct answer is B) Mapping IR operations to target architecture instruction sequences, choosing the best machine instructions for each operation
B
Correct Answer
Mapping IR operations to target architecture instruction sequences, choosing the best machine instructions for each operation
Explanation
Instruction selection: IR multiplication might map to MUL, or shift+add if multiplying by power of 2. Tree-pattern matching (IBURG, SDISel) finds optimal instruction sequences.
Progress
12/100