Why isn’t the SSE2 enhanced instruction set optimization available for C++ programs compiled with the /clr switch?
Why isn’t the SSE2 enhanced instruction set optimization available for C++ programs compiled with
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is the job of the JIT compiler to generate the machine code. It will do so based on the architecture of the processor it runs on. Yes, it will use SSE instructions when appropriate, the x64 JITter uses them heavily.
If you want to use SSE2 in your code then you’ll have to compile it separately without /clr. Or use the #pragma managed directive to switch to machine code generation so you can use the intrinsics.