CS501 ASSIGNMENT 1. SOLUTION (SPRING2020)


cs501 assignment 1 solution 2020


CS501 ASSIGNMENT 1. SOLUTION (SPRING2020)




Question No.1
Write assembly code for 2-address and 3-address machines to evaluate the given expression:
z = x- 3xy + 2(x/y) + y2
Note: x, y and z are memory locations
Question No.2
For the above given expression, calculate the time required to execute the code for 2-address and 3-address machines by considering the following parameters:

Machine Type
Average CPI
Processor Frequency
2-address
3
200 MHz
3-address
5
250 MHz
cs501 assignment solution



                      YouTube Video link

cs501 assignment





Post a Comment

0 Comments