The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+3 votes
411 views

The arithmetic expression

$$(a+b) * c- d/e ** l$$

is to be evaluated on a two address machine, where each operand is either a register or a memory location. 

With a minimum number of memory accesses of operands.the number of registers required to evaluate this expression is ______.

The number of memory accesses of operands is ____________

in Compiler Design by Active (3.4k points) | 411 views
0

I think * * means Exponentiation..

0
OUT OF SYLLABUS now??

1 Answer

+2 votes
Considering ** is for exponentiation.

3 registers are required & 6 memory operations in total to fetch all operands.
by Boss (30.5k points)
+1
Can you please elaborate .. ?
+2
ADD y,z

MUL y,c

MUL  e,l

DIV  d,e

SUB  y,d

here y,e,d are registers

operands y,z,c,e,l,d

Related questions

+2 votes
1 answer
3
asked Sep 11, 2014 in Non GATE by Kathleen Veteran (52.1k points) | 474 views
+1 vote
0 answers
4
asked Sep 13, 2014 in CO and Architecture by Kathleen Veteran (52.1k points) | 211 views
+4 votes
0 answers
5
asked Sep 12, 2014 in Non GATE by Kathleen Veteran (52.1k points) | 200 views
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
49,833 questions
54,800 answers
189,502 comments
80,720 users