This preview shows page 1. Sign up to view the full content.
Unformatted text preview: ins, indicating two series of computations that must be performed in sequence. The chain on the left processes the data, ﬁrst reading an array element from memory and then multiplying it times the accumulated product. The chain on the right processes the loop index i, ﬁrst incrementing it and then comparing it to length. The jump operation checks the result of this comparison to make sure the branch was correctly predicted. Note that there are no outgoing arrows 228 CHAPTER 5. OPTIMIZING PROGRAM PERFORMANCE
%edx.0 Execution Unit Operations load (%eax, %edx.0, 4) addl t.1, %ecx.0 incl %edx.0 cmpl %esi, %edx.1 jltaken cc.1 load incl
%ecx.i +1 cmpl cc.1 %edx.1 t.1 %ecx.1 %edx.1 cc.1 load
%ecx.0 t.1 jl addl
%ecx.1 Figure 5.14: Operations for First Iteration of Inner Loop of combine4 for Integer Addition. Compared to multiplication, the only change is that the addition operation requires only one cycle. from the jump operation box. If the branch was correctly predicted, no other processing i...
View
Full
Document
This note was uploaded on 09/02/2010 for the course ELECTRICAL 360 taught by Professor Schultz during the Spring '10 term at BYU.
 Spring '10
 Schultz
 The American, Gulliver's Travels, 2.2.5 2.2.6 2.2.7 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5

Click to edit the document details