SSE/SSE2 optimization with VC 8.0
-
Last weekend I discovered the new features of VC 2005. One of them is very interesting for me: the new compiler flag /arch:[SSE|SSE2]. Currently I have to be able to deactivate the parts of my code I have optimized with SSE/SSE2. So I use precompiler statements to switch between SSE/SSE2 and ordinary C++. This means that I have to write a lot of code twice. The new compiler flag would reduce the time I spend to optimize my code considerably. Unfortunately the documentation of the discussed compiler flag is not very large and it does not say how to find out which parts of the code were optimized by the compiler or even how to write C++ code to help the compiler with optimizing. I did not found much on the web about this topic so I would be happy if you could send me your experiences with this new compiler flags or a link to an expressive description on the web. Thank you in advance. Philipp Grohs -- modified at 13:25 Monday 16th January, 2006