0 votes 0 votes One of the purposes of using intermediate code in compilers is to increase the chances of reusing the machine-independent code optimizer in other compilers. eleborate this ?? Compiler Design compiler-design intermediate-code + – Gurdeep Saini asked Nov 15, 2018 retagged Jun 18, 2022 by Lakshman Bhaiya Gurdeep Saini 537 views answer comment Share Follow See 1 comment See all 1 1 comment reply Swapnil Naik commented Nov 15, 2018 i edited by Swapnil Naik Nov 15, 2018 reply Follow Share After intermediate code generation, we need to generate machine code for perticular machine based architecture. It would be unnecessary to compute every time machine code for different machine architecture, and then distribute it so instead distribute them intermediate code and let the common entity handle intermediate to machine code generation part. Here it becomes easy for a given machine to optimize code optimization process for its own architecture. https://gateoverflow.in/410/gate2008-12 1 votes 1 votes Please log in or register to add a comment.
Best answer 1 votes 1 votes Compiler construction can be broadly classified into two phases - front end and back end. From NPTEL: Link: https://nptel.ac.in/courses/106108113/module5/Lecture17.pdf goxul answered Nov 15, 2018 selected Nov 15, 2018 by Gurdeep Saini goxul comment Share Follow See 1 comment See all 1 1 comment reply Gurdeep Saini commented Nov 15, 2018 reply Follow Share thanks 0 votes 0 votes Please log in or register to add a comment.