GATE CS 2022: Compiler Design-2
Attempt now to get your rank among 335 students!
S1 : The front end of compiler consists Lexical analyzer , Syntax analyzer and semantic analyzer.
S2 : Target code generator is known as the back-end of compiler.
S3 : Code optimizer is middle end of compiler and is a optional phase in compiler.
Which option is correct ?
X → X+Z|Z
Z → Z*Y|Y
Y → (X)id
Then after eliminating the immediate left recursions we get
t1 = a – b;
t2 = t1 * c;
t3 = a – b;
t4 = t3 / t1
How many minimum variables required in equivalent three address code for the above static single assignment code?
- 335 attempts
- 1 upvote
- 4 comments