Starting from:

$24.99

CSE331 Homework 1 Solution



1. A compiler designer wants to improve the performance of a machine for one specific program. The program has the following properties:
R-type (x106) I-Type (x106) J-Type (x106)
Program instructions 50 30 20

R-type I-Type J-Type
Required Cycles 2 4 3
Assume you can improve only one type with 50%. Which type do you prefer for improvement and how many times can you improve the whole program in the end?



2. In this part you will write an assembly program on MARS for finding and printing all divisible sum pairs as explained below:

More products