47 votes 47 votes Generation of intermediate code based on an abstract machine model is useful in compilers because it makes implementation of lexical analysis and syntax analysis easier syntax-directed translations can be written for intermediate code generation it enhances the portability of the front end of the compiler it is not possible to generate code for real machines directly from high level language programs Compiler Design gate1994 compiler-design intermediate-code easy + – Kathleen asked Oct 4, 2014 recategorized Apr 25, 2021 by Lakshman Bhaiya Kathleen 19.8k views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply KUSHAGRA गुप्ता commented Nov 8, 2019 reply Follow Share $It\ enhances\ the\ portability\ of\ the\ front\ end\ of\ the\ compiler\ $ Ans: C 31 votes 31 votes Shiva Sagar Rao commented Feb 3, 2021 reply Follow Share Similar question: GATE2014-3-17 1 votes 1 votes Please log in or register to add a comment.
Best answer 49 votes 49 votes C. stating the actual use of the Intermediate Code. Also optimizations can be done on intermediate code enhancing the portability of the optimizer. Gate Keeda answered Oct 9, 2014 selected Aug 2, 2015 by Arjun Gate Keeda comment Share Follow See all 9 Comments See all 9 9 Comments reply Snehil Joshi commented Oct 9, 2014 reply Follow Share nothing else other than option C makes sense for the answers. therefore C is correct. 15 votes 15 votes Sandy1994 commented Jan 31, 2016 reply Follow Share the answer is A.... it makes implementation of lexical analysis and syntax analysis easier and not c –7 votes –7 votes ShiveshRoy commented May 19, 2016 i edited by ShiveshRoy Jan 9, 2018 reply Follow Share Your answer matches with Made easy solution but in my view, the answer should be C because when we generate intermediate code it is independent of machine so we can easily implement the same code in different machines without performing the analysis phase of compiler again and again. P.S: If u have any proper explanation for the answer then please let us know. 31 votes 31 votes rajan commented Nov 14, 2016 i edited by rajan Nov 16, 2016 reply Follow Share @arjun sir whats wrong wid option B . just see the point no 8 of this link https://gateoverflow.in/1664/gate1998_1-27 0 votes 0 votes Rasna Goyal 1 commented Dec 29, 2016 reply Follow Share point 8 is right that SDT is used for intermediate code generation . but that is not the reason why intermediate code is important 11 votes 11 votes VIDYADHAR SHELKE 1 commented Jan 8, 2019 reply Follow Share actually intermediate code implemented in back end ...then here why front end specify 0 votes 0 votes vaibhavkedia968 commented Jan 24, 2020 i edited by vaibhavkedia968 Jul 22, 2020 reply Follow Share The front end includes all analysis phases and the intermediate code generator. The back end includes the code optimization phase and final code generation phase. The front end analyzes the source program and produces intermediate code while the back end synthesizes the target program from the intermediate code. 3 votes 3 votes Jithendra319 commented Jul 21, 2020 reply Follow Share Is Option B) Wrong or not the best for the given question considering option C)?? 0 votes 0 votes gvinay commented Sep 22, 2023 reply Follow Share @jithendra purpose of SDT is to provide help to all the phase of compler in compilation time it can not written for intermdiate code generation... 0 votes 0 votes Please log in or register to add a comment.