- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
David
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page