iPhone编译为拇指 [英] iPhone compile for thumb

查看:181
本文介绍了iPhone编译为拇指的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道在iPhone目标的设置中关闭编译缩略图可能是一个好主意,以提高性能。我有一些麻烦找到这个设置。因为我在当前的项目中找不到它,我决定创建一个新的(我可以找到并设置它),并将我的文件复制到它(并更新我同时使用的所有库)。

I've heard it might be a good idea to turn off "compile for thumb" in an iPhone target's settings to increase performance. I'm having some trouble finding this setting though. Since I couldn't find it in my current project, I decided to make a new one (where I could find and set it), and copy my files over to it (and also update all libs I'm using at the same time).

但现在似乎这个设置也从这个新项目disapperad也。无论我选择什么SDK,模拟器或设备,设置都不会显示在目标设置!我确实似乎仍然有一个变量名为GCC_THUMB_SUPPORT在类别用户定义突然。这是什么?

But now it seems like this setting has disapperad from this new project also. No matter what SDK I choose, simulator or device, the setting will not show up in the target settings! I do seem however to still have a variable called GCC_THUMB_SUPPORT under the category "User-defined" all of the sudden. What is this?

我尝试创建一个新的目标,但是设置不会显示在这里(甚至不是GCC_THUMB_SUPPORT)。

I tried making a new target, but the setting will not show up in that either (not even GCC_THUMB_SUPPORT).

推荐答案

GCC_THUMB_SUPPORT是正确的变量。只要将其设置为NO即可禁用THUMB代码生成。

THUMB的一般规则是,如果代码是浮点重载,则禁用它)

更多关于此处

GCC_THUMB_SUPPORT is the right variable. Just set it to NO to disable THUMB code generation.
A general rule of THUMB is, to disable it if your code is floating point heavy :)
More about that here.

更新:

编译THUMB指令集的建议不再有效(实际上自iPhone 3GS起)。

Update:
The advice to compile for the THUMB instruction set is no longer valid (actually since the iPhone 3GS).

这篇关于iPhone编译为拇指的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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