Notes for armv6, armv7, and armv7s

Source: Internet
Author: User

Armv refers to the instruction set, which is hardware-oriented. Currently, iPhone 5 supports armv7s.

The iPhone 5 will ship with and only run IOS 6.0. to coincide with the launch of IOS 6.0, Apple has seeded developers with a newer version of its development tools. xcode 4.5 makes two major changes: it drops support for the armv6 ISA (used
The arm11 core in the iPhone 2G and iPhone 3G), keeps support for armv7 (used by modern arm cores) and it adds support for a new architecture target designed to support the new A6 SOC: armv7s.

IPhone 5 uses the armv7s chip. It is the superset of armv7, but only updates the floating point computing unit and adds some instructions. The general library files compiled before ios6 are common, the fat packages of armv6 and armv7 do not contain armv7s library files. In most cases, there is no source file for the library file. Therefore, you cannot compile a version that supports armv7s. A simple implementation method is to delete the configuration that supports armv7s.

Another way is to copy a library file of armv7 and mark it as a library file of armv7s. However, the. o file included in this library file is a collection of objects that implement function methods. In. there is a header in the o file to indicate which series of CPUs the package is for. In this header (Mach-O header, there is a field used to describe the CPU type and child type. The arm type is 12, the armv7 sub-type is 9, and the armv7s sub-type is 11, so we only need to change the sub-type marked as 9 to 11, which is easy to say, but it is still annoying to implement it.

1. OpenGL ES version support

IPhone: devices of the iPhone 3G or earlier versions (including the iPhone 3g) only support OpenGL es1.1. devices of the iPhone 3gs or later versions (including the iPhone 3gs) Support OpenGL es1.1 and OpenGL es2.0.

IPad: All iPad versions support OpenGL es1.1 and OpenGL es2.0.

IPod Touch: IPOD touch2 (including iPod touch2) version devices only support OpenGL es1.1, iPod touch3 (including iPod touch3) version devices support OpenGL es1.1, openGL es2.0 is also supported, but 8 GB iPod touch3 generation does not support OpenGL es2.0.

2. armv6, armv7, and armv7s

Armv6: iPhone 2g/3G, iPod 1g/2G

Armv7: iPhone 3gs/4/4S, iPod 3g/4G, iPad 1g/2g/3G

Armv7s: iphone5

Reference: http://stackoverflow.com/questions/12316339/what-is-armv7s; http://www.augcg.com/ios/armv7sconvert

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.