0 votes 0 votes # of temporary variable required to create 3 address code in static single assignment form for the expression P+Q*R-S/(Q*R). Compiler Design compiler-design intermediate-code three-address-code static-single-assignment numerical-answers + – minal asked Jan 22, 2019 retagged Jun 20, 2022 by Lakshman Bhaiya minal 900 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply suniljha commented Jan 22, 2019 reply Follow Share 2? 0 votes 0 votes minal commented Jan 22, 2019 reply Follow Share given is 4 but i think it5 0 votes 0 votes Please log in or register to add a comment.
2 votes 2 votes Is it 4 ? prathmesh_08 answered Jan 28, 2019 prathmesh_08 comment Share Follow See all 4 Comments See all 4 4 Comments reply minal commented Jan 29, 2019 reply Follow Share here q*r is used 2 times rt so why u used same variable ? 0 votes 0 votes prathmesh_08 commented Jan 29, 2019 reply Follow Share I think it's because in static single assignment you cannot reassign something twice , but you can reuse it again if needed in RHS like t1 . Here you are not reassigning t1 again, but using it again . Thanks. 1 votes 1 votes pawan kumarln commented Oct 5, 2019 reply Follow Share yes true 0 votes 0 votes Shivateja MST commented Dec 29, 2019 reply Follow Share @ prathmesh_08 In general Static Single Assignment means for each and every variable and for every computation of the program,we should assign a temporary variable right? So then total temporary variables should be 8 right? 0 votes 0 votes Please log in or register to add a comment.