x64 code behavior on Win7 & Win8

x64 code behavior on Win7 & Win8

Colleagues, Steve,

We have an application that is available in both IA-32 and x64 flavors. Engineering code with lots of math so we optimize as much as possible: using /O3 in both IA-32 and x64 compiles. The x64 bit version behaves differently on Win7 than on Win8.  The Win8 results are incorrect. The IA-32 version runs fine in both Win7 and Win8. How differently is the compiler behaving (regarding optimizations, say) when generating x64 code?


2 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

The compiler generates rather different code, since x64 has a different instruction set as well as more and wider registers. My guess as to the different behavior is probably an uninitialized variable, as otherwise there should not be Win7/Win8 differences.

Do you also use the /Qx or /Qax options to target newer processors? The default is Pentium 4/SSE2.


Melden Sie sich an, um einen Kommentar zu hinterlassen.