iPhone compile for thumb

后端 未结 4 2223
一整个雨季
一整个雨季 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:28

    I've found that the compiler settings ("GCC 4.2 - Code Generation", "GCC 4.2 - Language", etc) only show up in the Target info build settings window when the Active SDK is set to Device -- and the "User-defined" category only shows up when the Active SDK is Simulator.

    And yes, disabling Thumb compilation can be a big help to performance if you're dealing with lots of floating point math (e.g. floating-point audio processing). Though it's not, of course, an all-purpose magical speed-up (and supposedly Thumb-compiled code can run faster in some situations), so you'll probably only find disabling Thumb useful if your code has that kind of bottleneck.

提交回复
热议问题