LOOP UNROLLING / Data Hazards - TechRepublic
General discussion
February 12, 2002 at 12:01 AM
discussion

LOOP UNROLLING / Data Hazards

by discussion . Updated 23 years, 9 months ago

Question #1
What is the 2 times loop unrolling of the following?

Loop: ADD R0, R0 R2
SUBI R1, R1, #1
BNEZ R1, Loop

Question # 2

What type of hazards exist in this code?

LW R1, 0(R2)
ADDI R1, R1, #1

email:saeedmdali@hotmail.com

This discussion is locked

All Comments