GATE CSE
First time here? Checkout the FAQ!
x
0 votes
34 views
X= (a+b)*(c+d) variables are in the memory execute on a register -register cpu

Then how many 2 address and 3 address instructions requare ..

 

Explain please
asked in CO & Architecture by Junior (861 points)   | 34 views

1 Answer

+1 vote

X= (a+b)*(c+d)

For two address

Add a b

Add c d

Mul a c

store  a X

 

For three address(Opcode store_operand operand operand)

Add a a c

Add c c d

Mul X a c

 

It may be more reducible .

 

 

answered by Active (1.8k points)  


Top Users Sep 2017
  1. Habibkhan

    7184 Points

  2. Warrior

    2664 Points

  3. Arjun

    2582 Points

  4. rishu_darkshadow

    2520 Points

  5. A_i_$_h

    2280 Points

  6. nikunj

    1980 Points

  7. manu00x

    1856 Points

  8. makhdoom ghaya

    1770 Points

  9. Bikram

    1744 Points

  10. SiddharthMahapatra

    1718 Points


26,151 questions
33,733 answers
79,970 comments
31,120 users