128
Dependencies
AMD Athlon™ Processor x86 Code Optimization
22007E/0—November 1999
Dependencies
Spread out true dependencies to increase the opportunities for
p a r a l l e l e x e c u t i o n . A n t i -d e p e n d e n c i e s a n d o u t p u t
dependencies do not impact performance.
Register Operands
Maintain frequently used values in registers rather than in
memory. This technique avoids the comparatively long latencies
for accessing memory.
Stack Allocation
When allocating space for local variables and/or outgoing
parameters within a procedure, adjust the stack pointer and
use moves rather than pushes. This method of allocation allows
random access to the outgoing parameters so that they can be
set up whe n they a re calculated instea d of being held
somewhere else until the procedure call. In addition, this
method reduces ESP dependencies and uses fewer execution
resources.
Summary of Contents for Athlon Processor x86
Page 1: ...AMD Athlon Processor x86 Code Optimization Guide TM...
Page 12: ...xii List of Figures AMD Athlon Processor x86 Code Optimization 22007E 0 November 1999...
Page 16: ...xvi Revision History AMD Athlon Processor x86 Code Optimization 22007E 0 November 1999...
Page 202: ...186 Page Attribute Table PAT AMD Athlon Processor x86 Code Optimization 22007E 0 November 1999...
Page 252: ...236 VectorPath Instructions AMD Athlon Processor x86 Code Optimization 22007E 0 November 1999...
Page 256: ...240 Index AMD Athlon Processor x86 Code Optimization 22007E 0 November 1999...