Problem #3 Write code to implement the expression X = λ-B + C * (D * E-F)/(G + H * K) on a 0-address machine. (20 points) Show transcribed image text Problem #3 Write code to implement the expression X = λ-B + C * (D * E-F)/(G + H * K) on a 0-address machine. (20 points)
Solution
X=A-B+C*(D*E-F)/(G+H*K)
The postfix expression of the A-B+C*(D*E-F)/(G+H*K) is
AB-CDE*F-*GHK*+/+
TOS is the top of stack
M[X]
OR
OR