Question: Follow the examples on the slides and write the assembly code using STACK - based ( no operands ) , MARIE ( 1 operand )

Follow the examples on the slides and write the assembly code using STACK-based (no operands), MARIE (1 operand), Intel (2 operands) and MIPS/ARM (3 operands) for the following expression
Z=A+BC+DE
You can assume that MUL and DIV are available
How many instructions are needed for each architecture?
2. Using the same example as #1, assume that it takes 2 time units for PUSH/POP,3 time units for ADD, 4 time units for STORE/LOAD,5 time units for MUL/DIV. How many time units does it take for each architecture?
Follow the examples on the slides and write the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!