Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

How to close the automatic SIMD optimization in vs2012?

$
0
0

Hi all,

I am a user of vs2012, and I found that a simple for loop of C++ program will be optimized to SIMD code in release mode,

I want to compare the efficiency of  normal C++ code and the SIMD code, so I need to close the automatic simd optimization.

I have tryed to select the "project- property- c/c++ - code generation-  Enable Enhanced Instruction Set- No Enhanced Instructions (/arch:IA32)"

But no use ,the vs2012 will automatic optimization the normal c++ code to simd code in release mode(Through the compiled assembly code),

My os is 64bit, and the cpu is 64bit,

do anyone konw how to close automatic simd optimization?  Thanks! 



Viewing all articles
Browse latest Browse all 15302

Trending Articles