iphone - 如何将 -mthumb 添加到 Xcode

标签 iphone objective-c ios xcode ipad

通读 docs我看到了这一段:

Build your program using the Thumb option. Adding the -mthumb compiler flag can reduce the size of your code by up to 35%. However, if your app contains floating-point–intensive code modules and you are building your app for ARMv6, you should disable the Thumb option. If you are building your code for ARMv7, you should leave Thumb enabled.

我应该在 Xcode 的什么地方放置标志 -mthumb?我正在使用 Xcode 4.4.1。

最佳答案

查看汇编程序输出,我相信在为 armv7 构建时,Thumb 生成是 clang 中的默认设置。您可以使用 -mno-thumb 将其关闭。

关于iphone - 如何将 -mthumb 添加到 Xcode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12102875/

相关文章:

iphone - 从裁剪图像中删除不需要的区域

Objective-C:自定义 BOOL 访问器(getter 和 setter)方法

iphone - 日期选择器 IOS 每月重复提醒

iphone - UITextFields 不工作

javascript - jQuery 适用于 Chrome、Firefox、IE 但不适用于 iPhone

ios - UIPickerView 没有选择正确的行

ios - 如何防止用户不删除 UITextField 中的特定字符?

ios - 滑动手势的多个 Action

ios - iTunes Connect应用内购买多个应用

iphone - 可能不响应+alloc?