Does Xcode 4 have support for AVX?

末鹿安然 提交于 2019-12-30 07:33:42

问题


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.


回答1:


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


来源:https://stackoverflow.com/questions/5257375/does-xcode-4-have-support-for-avx

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