Xcode 4是否支持AVX? [英] Does Xcode 4 have support for AVX?

查看:234
本文介绍了Xcode 4是否支持AVX?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我花费时间和金钱下载Xcode 4之前,有谁能告诉我它是否支持在Sandy Bridge CPU上支持AVX指令集的gcc版本(或任何其他编译器,例如LLVM)(即 gcc -mavx 在主流gcc版本上)?我没有在任何地方看到任何公开的发行说明,所以它不容易检查,并且除非它具有AVX支持,否则我并不真的需要Xcode 4。

Before I spend time and money downloading Xcode 4, can anyone tell me whether it comes with a version of gcc (or any other compiler, e.g. LLVM) which supports the AVX instruction set on Sandy Bridge CPUs (i.e. gcc -mavx on mainstream gcc builds) ? I don't seen any public release notes anywhere so it's not easy to check, and I don't really need Xcode 4 yet unless it has AVX support.

推荐答案

我最终破解并下载了Xcode 4 - 它看起来像clang是目前唯一支持AVX的编译器,尽管我没有正确测试它:

I eventually cracked and downloaded Xcode 4 - it looks like clang is the only compiler that may support AVX currently, although I haven't tested it properly:

$ clang -dM -E -mavx - < /dev/null | grep -i avx
#define __AVX__ 1

这篇关于Xcode 4是否支持AVX?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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