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

核能气质少年 提交于 2019-12-10 18:29:27

问题


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!!!


回答1:


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.



来源:https://stackoverflow.com/questions/6890049/how-to-add-simd-related-compiler-flags-in-visual-studio-2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!