Intel ARCHITECTURE IA-32 User Manual Page 145

  • Download
  • Add to my manuals
  • Print
  • Page
    / 568
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 144
General Optimization Guidelines 2
2-73
Note that transcendental functions are supported only in x87 floating
point, not in Streaming SIMD Extensions or Streaming SIMD
Extensions 2.
Instruction Selection
This section explains how to generate optimal assembly code. The listed
optimizations have been shown to contribute to the overall performance
at the application level on the order of 5%. Performance gain for
individual applications may vary.
The recommendations are prioritized as follows:
Choose instructions with shorter latencies and fewer µops.
Use optimized sequences for clearing and comparing registers.
Enhance register availability.
Avoid prefixes, especially more than one prefix.
Assembly/Compiler Coding Rule 37. (M impact, H generality) Choose
instructions with shorter latencies and fewer micro-ops. Favor
single-micro-operation instructions.
A compiler may be already doing a good job on instruction selection as
it is. In that case, user intervention usually is not necessary.
Assembly/Compiler Coding Rule 38. (M impact, L generality) Avoid
prefixes, especially multiple non-0F-prefixed opcodes.
Assembly/Compiler Coding Rule 39. (M impact, L generality) Do not use
many segment registers.
On the Pentium M processor, there is only one level of renaming of
segment registers.
Page view 144
1 2 ... 140 141 142 143 144 145 146 147 148 149 150 ... 567 568

Comments to this Manuals

No comments