N.M
N.M

Reputation: 685

How to add SIMD-related compiler flags in visual studio 2010

I found this list of flags:

http://www.ncsa.illinois.edu/UserInfo/Resources/Software/Intel/Compilers/10.0/main_for/mergedProjects/optaps_for/common/optaps_dsp_targ.htm

and I'd like to try and add some of them to my project. I can't seem to find the way to do it on a visual studio 2010 platform :(

Does anyone know how to do it?

Thanks!!!

Upvotes: 3

Views: 2753

Answers (1)

Stu Mackellar
Stu Mackellar

Reputation: 11638

The /arch flag in Visual Studio allows you to specify the target processor architecture, and includes support for SSE2, amongst others. This MSDN page describes how the flag works in the context of SIMD/SSE2.

Visual Studio also supports explicit usage of SSE2 instructions via compiler intrinsics.

Upvotes: 1

Related Questions