AMD x86 manual Top Optimizations

Models: x86

1 256
Download 256 pages 58.62 Kb
Page 23
Image 23

22007E/0 — November 1999

AMD Athlon™ Processor x86 Code Optimization

2

Top Optimizations

This chapter contains concise descriptions of the best optimizations for im proving the performance of the AMD Athlon™ processor. Subsequent chapters contain more detailed descriptions of these and other optimizations. The optimizations in this chapter are divided into two groups and listed in order of importance.

Group I — Essential Group I contains essential optimizations. Users should follow

Optimizationsthese critical guidelines closely. The optimizations in Group I are as follows:

Memory Size and Alignment Issues—Avoid memory size mismatches—Align data where possible

Use the 3DNow!™ PREFETCH and PREFETCHW Instructions

Select DirectPath Over VectorPath Instructions

Group II — Secondary Group II co ntains secondary optimizations that can

Optimizationssignificantly improve the performance of the AMD Athlon processor. The optimizations in Group II are as follows:

Load-Execute Instruction Usage—UseLoad-Executeinstructions—Avoidload-executefloating-point instructions with integer operands

Take Advantage of Write Combining

Use 3DNow! Instructions

Avoid Branches Dependent on Random Data

Top Optimizations

7

Page 23
Image 23
AMD x86 manual Top Optimizations