iPhone compile for thumb

后端 未结 4 2220
一整个雨季
一整个雨季 2021-02-15 13:43

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 thou

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-15 14:39

    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.

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

提交回复
热议问题