The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
0 votes
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 Active (2.3k points)
retagged by | 47 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 Loyal (3.4k points)

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

29,100 questions
36,904 answers
34,770 users