如何在Xcode中启用Neon指令 [英] How to enable Neon instruction in Xcode

查看:1124
本文介绍了如何在Xcode中启用Neon指令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在iphone上使用Neon SIMD指令。
我听说我们必须在目标检查器的其他C标志字段中放置标志-mfloat-abi = softfp -mfpu = neon,但在构建时我得到错误:无法识别的命令行选项 - mfpu = neon。



为了允许这个标志,还有什么特别的东西需要做吗? (我有Xcode 3.2.1和iphone sdk 3.1.3)



谢谢!!

解决方案

默认情况下启用NEON。



目标必须是ARMv7。 (3GS或更高版本)



为了使用NEON,最简单的方法是使用NEON指令编写汇编代码。



<这并不难。 ARM在其主页上提供PDF格式的NEON指南。


I want to use Neon SIMD instruction for the iphone. I heard we have to put flags "-mfloat-abi=softfp -mfpu=neon" in the "Other C Flags" field of the Target inspector, but when building I get "error: unrecognized command line option "-mfpu=neon"" .

Is there anything else special that has to be done to allow this flag? (I have Xcode 3.2.1 and iphone sdk 3.1.3)

Thanks !!

解决方案

NEON is enabled by default.

The target has to be ARMv7 for that. (3GS or later)

In order to utilize NEON, the easiest way is writing assembly codes with NEON instructions.

It isn't that hard. ARM provides NEON guide in PDF on their homepage.

这篇关于如何在Xcode中启用Neon指令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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