Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

GATE | GATE-CS-2014-(Set-3) | Question 65

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

One of the purposes of using intermediate code in compilers is to
(A) make parsing and semantic analysis simpler.
(B) improve error recovery and error reporting.
(C) increase the chances of reusing the machine-independent code optimizer in other compilers.
(D) improve the register allocation.


Answer: (C)

Explanation: After semantic Analysis, the code is converted into intermediate code which is platform(OS + hardware) independent, the advantage of converting into intermediate code is to improve the performance of code generation and to increase the chances of reusing the machine-independent code optimizer in other compilers.
So, option (C) is correct.



Quiz of this Question

My Personal Notes arrow_drop_up
Last Updated : 10 Sep, 2021
Like Article
Save Article
Similar Reads