2 votes 2 votes During code generation, we need to do register allocation (kind of machine dependent stuff). So, I think it must be the part of Synthesis phase? Compiler Design compiler-design intermediate-code + – monanshi asked Dec 10, 2015 monanshi 1.9k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 5 votes 5 votes intermediate code generation is part of analysis phase...target code generation is part of synthesis phase Pooja Palod answered Dec 11, 2015 • selected Dec 11, 2015 by monanshi Pooja Palod comment Share Follow See all 2 Comments See all 2 2 Comments reply Gurdeep Saini commented Jan 16, 2019 i edited by Gurdeep Saini Jan 22, 2019 reply Follow Share but madeeasy told that intermediate code generation is a part of synthesis phase edit after @Devesh Ratna Singh comment ok intermediate code generation is a part analysis phase 0 votes 0 votes Devesh Ratna Singh commented Jan 22, 2019 reply Follow Share Intermediate Code Generation is a part of the Analysis (front-end) phase. Target Code Generation is a part of the Synthesis (back-end) phase. 0 votes 0 votes Please log in or register to add a comment.