ARM vs Thumb performance on iPhone 3GS, non floating point code

后端 未结 3 778
一整个雨季
一整个雨季 2021-01-31 18:12

I was wondering if anyone had any hard numbers on ARM vs Thumb code performance on iPhone 3GS. Specifically for non-floating point (VFP or NEON) code - I\'m aware of the issues

3条回答
  •  佛祖请我去吃肉
    2021-01-31 18:45

    Thumb code will essentially always be slower than equivalent ARM. The one case where Thumb code can be a big performance win is if it makes the difference between your code fitting into on-chip memory or cache.

    It's hard to give exact numbers on performance differences, because it's entirely dependent on what your code actually does.

    You can set per-architecture compiler flags in XCode, which would avoid breaking the simulator build. See the XCode build setting documentation.

提交回复
热议问题