In compiler design, which analysis determines the lifetime of variables?
-
A
Data flow analysis
-
B
Liveness analysis
Correct answer
-
C
Control flow analysis
-
D
Alias analysis
Correct answer
B. Liveness analysis
21 views
Explanation
Liveness analysis determines which variables are live at each point in the program.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ