Question: instructions no coding please 3. (10 p.) Suppose that the target assembly language for a compiler has these 5 instructions (same as in the book
instructions no coding please
3. (10 p.) Suppose that the target assembly language for a compiler has these 5 instructions (same as in the book on page 62). push address add sub mul pop address Each arithmetic instruction pops an integer into the right operand, then pops an integer into the left operand and pushes the result of the operation on the stack. Translate the following assignments. Standard precedence and associativity rules apply. Process the variables in the same order as they appear in the assignments. (a) total := a+bc+d (b) result ab+(cd)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
