通读 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/