AMD 250 Manuale Utente

Pagina di 384
Chapter 2
C and C++ Source-Level Optimizations
7
Software Optimization Guide for AMD64 Processors
25112
Rev. 3.06
September 2005
Chapter 2
C and C++ Source-Level 
Optimizations
Although C and C++ compilers generally produce very compact object code, many performance 
improvements are possible by careful source code optimization. Most such optimizations result from 
taking advantage of the underlying mechanisms used by C and C++ compilers to translate source 
code into sequences of AMD64 instructions. This chapter includes guidelines for writing C and C++ 
source code that result in the most efficiently optimized AMD64 code.
This chapter covers the following topics:
Topic
Page