Sunday, 05 20th

Last update09:44:47 AM

Login With Facebook

Combinestudy

CS501 Fall 2011 First Assignment

Assignment No. 01
Semester Fall 2011
Advance Computer Architecture - CS501

Total Marks: 20

Due Date: 31/10/2011

Objective:

To learn and understand classification of instructions.

Instructions:

Please read the following instructions carefully before solving & submitting assignment:

Assignment should be in your own wordings not copied from net, handouts or books.

It should be clear that your assignment will not get any credit (zero marks) if:

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file is corrupt.
  • The assignment is copied (from other student or copied from handouts or internet).

GOOD LUCK 

Question No 1

Marks: 5+5+5+5 = 20

Write the code to implement the expression A = (B+C) * (D + E) for

  1. 1) 3-address instructions
  2. 2) 2-address instructions
  3. 3) 1-address instructions
  4. 4) 0-address instructions

In accordance with programming language practice, computing the expression should not change the values of its operands.






upload assignment
Upload your Solution