In the context of compiler design, what is the primary purpose of the Sethi-Ullman algorithm?
-
A
Register allocation optimization
Correct answer
-
B
Lexical analysis optimization
-
C
Syntax tree minimization
-
D
Intermediate code generation
Correct answer
A. Register allocation optimization
16 views
Explanation
The Sethi-Ullman algorithm generates optimal code for expression trees by minimizing the number of registers required.
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ