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
Brilliant_brown [7]
4 years ago
8

4. Refer to the following code the answer the remaining questions. loop: load r1, r5, 40 ; r1  data_memory[r5 + 40] add r1, r1,

r2 ; r1  r1 + r2 store r1, r5, 40 ; data_memory[r5 + 40]  r1 addi r5, r5, -4 ; r5  r5 – 4 bne r5, 0, loop ; branch to loop if r5 != 0 (r5 not equal to zero) Assume that the original for loop is to execute an even number of iterations, N. The loop now is unrolled 2 times. Show the assembly language listing of the unrolled loop with no output dependences but no additional instruction scheduling. Select from registers r6, r7, and r8, in this order, as necessary to prevent introducing dependences in the unrolled code. Do not waste registers (use a register unnecessarily).
Computers and Technology
1 answer:
Anni [7]4 years ago
4 0

Answer:

See explaination

Explanation:

Loop Unrolling

Assembly code

loop:

load r1, r5, 40 //r1 = Mem[r5 + 40]

load r6, r5, 36 //r6 = Mem[r5 + 36]

add r7, r6, r2 //r7 = r6 + r2

store r7, r5, 36 //Mem[r5 + 36] = r7

add r1, r1,r2 //r1 = r1 + r2

store r1, r5, 40 //Mem[r5 + 40] = r1

addi r5, r5, -8 //r5 = r5 -8

bne r5, 0, loop //if(r5 != 0)branch to loop

You might be interested in
C. What is the computer memory? What is the role of the memory in a computer?​
LiRa [457]

Answer:

Hold temporary data n instruction which cpu needed. Main role is essentially to store data.

Explanation:

good luck

5 0
3 years ago
What device senses short circuits and stops electrical flow when ground faults occur?.
nataly862011 [7]

A <u>ground-fault circuit interrupter</u><u> </u><u>GFCI</u> device senses short circuits and stops electrical flow when ground faults occur.

A ground fault can be described as a fault in electricity where electricity tries to reach the ground from places it was not intended to. The ground-fault circuit interrupter (GFCI) can be described as a device that helps to prevent electrical shocks when a ground fault occurs.

The GFCI works in a way that it has the ability to detect power whenever a device is plugged into it. Whenever a power change or short circuit is detected, the GFCI acts as a circuit breaker and stops the device immediately. In this way, it helps to protect from electrical shocks and protects the device too.

A GFCI is very common to e installed in places that are at a higher risk due to contact with water.

To learn more about ground-fault circuit interrupter (GFCI), click here:

brainly.com/question/7322623

#SPJ4

3 0
2 years ago
Jerry is working at the desk of a client in the marketing department of his company. The client thinks that the problem is the v
Softa [21]

Answer:

E. Check the simple things first to make sure you do not miss anything

Explanation:

This first step is called troubleshooting. As a certified operator, you need to check the simple things first to make sure you don't overlook something in your diagnosis.

The client is fairly certain the problem is from the video card, so after checking the simple things first (troubleshooting) and see no problems, then you can check the video card of the computer.

The reason it is advisable to troubleshoot on the simple things is to make sure you don't overlook something and also that your mind isn't totally fixed on one particular thing which is the video card in this situation.

5 0
4 years ago
A software programâs _________ indicates what can legally be done with that program.]
xxMikexx [17]
A software license indicates what can be done with that program, in terms of its use, modification and distribution.

For example, Linux has a software license that allows users to modify and even distribute the operating system. It is open source.
7 0
4 years ago
What is wrong with the formula below?<br><br> SUM(A1:A5)/SUM(B1:B5)
Vlad [161]

Answer:

You forgot the "=" sign.

Explanation:

formulas in excel start with an "="

=SUM(A1:A5)/SUM(B1:B5)

4 0
4 years ago
Other questions:
  • In Linux Operating System, what file extension is used forexecutable files?
    6·1 answer
  • Which tag will you use if you want your web page to look the same as your source code?
    11·1 answer
  • The OSI is a reference system that is used by most types of technicians EXCEPT _____.
    11·2 answers
  • When typing a cell, hitting Tab will bring which result?
    12·1 answer
  • What types of storage can be used to access your data on another computer?
    7·2 answers
  • Consider the following code: x = 9 y = -2 z = 2 print (x + y * z) What is output? 9 13 14 5
    5·1 answer
  • Q.2 (A)
    5·1 answer
  • It is not important to type '=' before a formula or a function
    12·1 answer
  • How many total cells can a worksheet window contain? If columns are labelled alphabetically, what will be the label for the cell
    15·1 answer
  • A classic game, Wario Land, has an invincible main character who reacts to the environment in order to solve puzzles. So, for ex
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!