Earn in Dollars

PaidVerts

Assignment # 01 CS501 - Advance Computer Architecture (Graded) Due Date November 18, 2014






Rules for Marking
It should be clear that your assignment would not get any credit if:

  • The assignment is submitted after the due date.
  • The submitted assignment does not open or file is corrupt.
  • Strict action will be taken if submitted solution is copied from any other student or from the internet.


1)      You should concern recommended books to clarify your concepts as handouts are not sufficient.
2)      You are supposed to submit your assignment in .doc format. Any other formats like scan images, PDF, zip, rar, bmp etc will not be accepted.


Note: 

No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.

For any query, feel free to email at:
cs501@vu.edu.pk




Question No. 1                                                                                                                 10 Marks
Write assembly language instructions to execute the following expression on 0-address and 3-address machines.
F = A + (B × C / D) – E




Question No. 2                                                                                                                  10 Marks
A compiler designer is trying to decide between two code sequences for a particular machine. The hardware designers have supplied the following facts:


Instruction Class
CPI required for each class
A
2
B
3
C
2


The compiler designer intends to write two code sequences to achieve a task. Both code sequences are required the following instruction count.


Code Sequence
Instruction Count for each sequence
A
B
C
1
10
5
8
2
6
4
9


a)      Which code sequence will execute faster? Justify your answer on the basis of CPU clock cycles calculations.
                                        
b)     What is the CPI for each code sequence?

Solution:

Ideal solution Attachments click below link
http://adf.ly/uHUZz
 
Top