0 votes 0 votes For question like :- Find minimum number of variable required to solve the expression in three address code. (not SSA) Do we need to consider the given variable also? Example:- q + r/3 + s – t * 5 + u * v/w how many variable required? Compiler Design three-address-code made-easy-test-series numerical-answers + – sardendu asked Sep 29, 2018 edited Jul 15, 2022 by Anjana5051 sardendu 446 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes ((q +( r/3)) + s) – ((t * 5 )+( u * (v/w))) t1 = v/w; t1=t1*u; t2 = t*5; t2 = t2+t1; t3 = r/3; t3 = t3+q; t3 = t3+s; t3 = t3-t2; so , 3 variables needed. Manas Mishra answered Sep 30, 2018 Manas Mishra comment Share Follow See all 2 Comments See all 2 2 Comments reply sardendu commented Oct 1, 2018 reply Follow Share what about q r s t u v w? total variables are :- 10? 0 votes 0 votes Manas Mishra commented Oct 1, 2018 reply Follow Share no , only three variables t1,t2 and t3 .. we will not consider q r s t u v w as in the result now we r treating only t1 , t2 and t3 as variables nad rest other as constants 0 votes 0 votes Please log in or register to add a comment.