0 votes 0 votes $\text{What is three address code representation of this ?}$ -a+b|c^d^e*f|g Compiler Design compiler-design three-address-code numerical-answers test-series + – Nikhil Patil asked Feb 18, 2018 • retagged Jul 2, 2022 by Lakshman Bhaiya Nikhil Patil 593 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply joshi_nitish commented Feb 18, 2018 reply Follow Share what is '|' ? 0 votes 0 votes Nikhil Patil commented Feb 19, 2018 reply Follow Share Sir, It is Bitwise OR 0 votes 0 votes joshi_nitish commented Feb 19, 2018 reply Follow Share ok, then corresponding 3-addr code will be, Note: i have taken ^ as exponential operator, otherwise if it is bitwise XOR, answer given by @Reena is correct below t1=-a t2=t1+b t3=d^e t4=c^t3 t5=t4*f t6=t2|t5 t7=t6|g 2 votes 2 votes Nikhil Patil commented Feb 19, 2018 reply Follow Share I expecting same..thank you sir 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes $^$ :Bitwise exclusive OR. $|$ :bitwise inclusive OR. $t1$=$e*f$ $t2=-a+b$ $t3$ $=$ $c$ $^$ $d$ $t4=t3$ $^$ $t1$ $t5=t2|t4$ $t6=t5|g$ NOTE: exclusive OR has higher precedence than bitwise inclusive OR in C. reena_kandari answered Feb 19, 2018 reena_kandari comment Share Follow See 1 comment See all 1 1 comment reply Nikhil Patil commented Feb 19, 2018 reply Follow Share Please look above one I think that is Right 0 votes 0 votes Please log in or register to add a comment.