jsherk
jsherk

Reputation: 6472

How to take advantage of ARMv7s on iPhone 5 in Objective-C iOS?

I am wondering how to actually take advantage of the ARMv7s architecture for iPhone 5?

Are there specific instructions in Objective-C that will only work with this architecture, or is there a flag to force it to use armv7s and run faster?

Thanks

Upvotes: 1

Views: 82

Answers (1)

一二三
一二三

Reputation: 21239

Set your project's build architectures to "armv7" and "armv7s" (which should be the default for new projects), as described in the App Distribution Guide. The compiler will take care of choosing the optimal instructions to take advantage of the armv7s profile.

Upvotes: 1

Related Questions