Does Xcode 4 have support for AVX?

前端 未结 1 1455
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-07 11:16

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 instru

1条回答
  •  自闭症患者
    2021-01-07 11:55

    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
    

    0 讨论(0)
提交回复
热议问题