next up previous contents
Next: Parallel Processing and Process Up: Optimizations Previous: Release Build

Processor Specific Build

Under Project -> Settings -> C/C++ -> Code Generation, set the compiler to optimize for speed and for a PentiumPro processor, which are under the C++ tab in Project Settings. Although it is common to compile code to be backwards compatible with earlier processors, performance is improved slightly in a build aimed at a particular processor model. Some opcodes may be missing on older processors, for example MMX commands, and some operations are faster on one processor than they are on other processors in the same family. The PentiumPro also has different caching and branch prediction behavior than other x86 chips, and a compiler can take advantage of this.
Testing 3000 50,000 element arrays of random integers, with all processes on one node using the fastest implementation of merge discussed in the previous section, the PentiumPro build ran 0.66% faster than the build for a processor mix.


Garth Brown
2001-01-26