1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Paha777 [63]
3 years ago
14

More registers appear to be a good thing, in terms of reducing the total number of memory accesses a program might require. Give

n an arithmetic example, Sum=(A+B)-(C+D), support this statement. First, determine the number of memory accesses necessary using MARIE and the two registers for holding memory data values (AC and MBR). Then perform the same arithmetic computation for a processor that has more than three registers to hold memory data values
Computers and Technology
1 answer:
gulaghasi [49]3 years ago
8 0

Answer:

Following is given the answer step by step:

Explanation:

First of all we will write a program using MARIE that will support the statement: Sum = (A + B) - (C + D). All the necessary comments are given in front of each statement:

Load    A                   # variable A will be loaded

Add     B                  # B will be added to A

Store   Temp1         # A + B will be stored in Temp1

Load    C                  # C will be loaded in memory

Add     D                 # D will be added to C

Store   Temp2         # C + D will ge stored in Temp2

Load    Temp1         # Temp1 will be loaded in the memory

Subt     Temp2         # Temp2(A + B) get subtracted from Temp1(A - B)

Store    Sum             # (A + B) - (C + D) will get stored in Sum.

We can see from above program that memory is accessed 9 times. While if C + D get executed first than memory accesses will be reduced to 7.

Above same program could be written using an architecture of 4 registers:

  • R1
  • R2
  • R3
  • R4

The program is as follows:

Load   R1 , A     #A  will be loaded into R1

Load   R2 , B    # B will be loaded into R2

Add     R1 , R2    # R2 gets added to R1 and the result is stored in R1 (A + B)

Load   R3 , C      # C loaded into R3

Load   R4 , D     # D loaded into R4

Add    R3 , R4   # Value in R4 gets added into R3 and R3 becomes (C + D)

                          #no memory accesses required for this operation

Subt   R1 , R4     #R4 (C + D) gets subtracted from R1 (A + B)

                         #no memory accesses required for this operation

Store  Sum        # The recent value will be stored into Sum

Here memory is accessed 5 times in total.

<h2>I hope it will help you!</h2>
You might be interested in
The purchase and subsequent sale of a securities position in a customer account solely to generate commissions is____________.
Citrus2011 [14]

Answer:

Churning

Explanation:

Churning is termed as an act of a broker conducting immoderate trading in the account of client solely to generate commissions. It is an illegal and deceptive practice. It violates security laws. The purchase and subsequent sale of a securities that are little or insignificant to meet the investment goals of client can be the evidence of churning. Consequently it causes considerable losses in client's account or can produce a tax liability.

Churning occurs due to over trading by a broker to generate commissions by buying and selling stocks excessively on the behalf of investor. This often happens when broker has permissive authority over client's account.

5 0
3 years ago
Clip art, by default, is formatted as a(n) ____, which cannot be moved to a precise location on a page.
Alexus [3.1K]
It is the inline graphic. Graphics  pictures that are inserted inside a content archive. Inline designs on the Web are really HTML pages with connections to illustrations records put away on the Web server. The program shows the content and pictures as though they were physically in agreement.
4 0
4 years ago
Big Data _______________. Relies on the use of unstructured data imposes a structure on data when it is captured relies on the u
kifflom [539]

Answer:

captures data in whatever format it naturally exists

Explanation:

quizletBig Data _______________. Relies on the use of unstructured data imposes a structure on data when it is captured relies on the use of structured data captures data in whatever format it naturally exists

4 0
2 years ago
A screw has 4 threads per centimeter and a circumference of 2 centimeters. What is the mechanical advantage of the screw? 2 4 6
Lisa [10]

Answer:

M.A = 8

Explanation:

Given the following data;

Circumference = 2cm

Number of threads = 4

To find the mechanical advantage (M.A);

Mechanical \; advantage = \frac {Circumference}{Pitch}

But, Pitch = \frac {1}{number \; of \; threads}

Pitch = \frac {1}{4}

Pitch = 0.25

Substituting the values into the equation, we have;

M.A = \frac {2}{0.25}

M.A = 8

Therefore, the mechanical advantage of the screw is 8.

4 0
3 years ago
Read 2 more answers
What specific government policy do you like the most in terms of contributing to the development of science and techonology in t
adell [148]

Answer:

AN ACT TO PROMOTE SCIENTIFIC, ENGINEERING AND TECHNOLOGICAL RESEARCH, INVENTION AND DEVELOPMENT

6 0
3 years ago
Other questions:
  • Programs that are embedded in a web page are called java ____.
    11·1 answer
  • Where is the chart option found in the Excel application?
    8·2 answers
  • A computer with a domain name is called a
    8·2 answers
  • Using Matlab programming I need to rotate the line defined by x,y by 45 degrees around 2,2
    13·1 answer
  • Compare and contrast between Client/Server and Peer-to-Peer networks. What are some of the business benefits of using such netwo
    9·1 answer
  • What allows you to navigate up, down, left and right in a spreadsheet?
    12·1 answer
  • THE FOLLOWING IS WRITTEN IN C:
    5·1 answer
  • What is output by: print(len(stuff))
    13·1 answer
  • I will make you brainless just answer all this question!!​
    14·1 answer
  • File names should be limited to 144 characters.<br><br> true or false
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!