Intel ARCHITECTURE IA-32 User Manual Page 103

  • Download
  • Add to my manuals
  • Print
  • Page
    / 568
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 102
General Optimization Guidelines 2
2-31
Alignment of code is less of an issue for the Pentium 4 processor.
Alignment of branch targets to maximize bandwidth of fetching cached
instructions is an issue only when not executing out of the trace cache.
Alignment of code can be an issue for the Pentium M processor, and
alignment of branch targets will improve decoder throughput.
Example 2-11 Code That Causes Cache Line Split
mov esi, 029e70feh
mov edi, 05be5260h
Blockmove:
mov eax, DWORD PTR [esi]
mov ebx, DWORD PTR [esi+4]
mov DWORD PTR [edi], eax
mov DWORD PTR [edi+4], ebx
add esi, 8
add edi, 8
sub edx, 1
jnz Blockmove
Figure 2-1 Cache Line Split in Accessing Elements in a Array
Index 1Index 0 cont'd
Index 0
Index 15 Index 16
Line 029e7100h
Line 029e70c0h
Index 17Index 16 cont'd Index 31 Index 32
Line 029e7140h
Address 029e70fehAddress 029e70c1h
Page view 102
1 2 ... 98 99 100 101 102 103 104 105 106 107 108 ... 567 568

Comments to this Manuals

No comments