如何在Visual Studio 2010中添加与SIMD相关的编译器标志 [英] How to add SIMD-related compiler flags in visual studio 2010

查看:137
本文介绍了如何在Visual Studio 2010中添加与SIMD相关的编译器标志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了以下标志列表:

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

,我想尝试将其中一些添加到我的项目中.我似乎找不到在Visual Studio 2010平台上执行此操作的方法:(

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 :(

有人知道怎么做吗?

谢谢!

推荐答案

/Visual Studio中的arch 标志允许您指定目标处理器体系结构,并包括对SSE2的支持等.此 MSDN页面描述了如何该标志在SIMD/SSE2的上下文中起作用.

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还支持 SSE2的明确用法通过编译器内在函数 >.

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

这篇关于如何在Visual Studio 2010中添加与SIMD相关的编译器标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆