See the revised version of this paper (updated 09-Jun-08): Performance Optimization of Windows Applications on AMD Processors
The Mandel project is a Visual Studio C/C++ per formance demo that illustrates several key concepts in Windows programming, and moves progressively through different performance optimizations. At the most basic level, it shows how to create and compile a simple Windows application using Visual Studio 2005. This floating-point intensive project can easily be compiled using the 32-bit compiler, or built for higher performance using the new 64-bit compiler included in Visual Studio 2005.
Dramatic performance gains are attained by using certain C++ source-level optimization tricks, then by using a series of further optimizations including compiler SSE vector intrinsic functions. True native 64-bit assembly code is optionally integrated into the project, and assembled using 64-bit MASM. Finally, the newly supported OpenMP multi-threading API is used to easily multi-thread the application and double the performance on dual-core desktop PCs or two-processor workstation machines.