xcode armv8 和 arm64 一样吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/41091934/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 09:38:24  来源:igfitidea点击:

Are armv8 and arm64 the same?

iosxcodecpu-architecturearm64

提问by hasan

In xcode which is the developement environment for iOS. When creating a new project. Build settings states that it supports armv7, armv7sand arm64architectures.

在 iOS 的开发环境 xcode 中。创建新项目时。构建设置表明它支持armv7armv7sarm64架构。

The following chart shows apple devices architectures:enter image description here

下图显示了苹果设备的架构:在此处输入图片说明

armv8not mentioned anywhere. Does that mean armv8and arm64is the same thing?

armv8未在任何地方提及。这是否意味着armv8arm64是一回事?

I wonna use the following binary: http://www.libjpeg-turbo.org/Documentation/OfficialBinaries

我不会使用以下二进制文件:http: //www.libjpeg-turbo.org/Documentation/OfficialBinaries

It says that version 1.5.1 of this binary supports armv8 architecture. That also indicates that armv8 and arm64 are the same thing.

它说这个二进制文件的 1.5.1 版支持 armv8 架构。这也表明 armv8 和 arm64 是一回事。

Another question but about the binary. Does the link indicates that its safe to use the 1.5.1 version for iOS?

另一个关于二进制的问题。该链接是否表明可以安全地使用 iOS 1.5.1 版本?

回答by Notlikethat

Oh, ambiguous terminology - "architecture" in this context doesn't actually mean architecture in the sense of the ISA or system architecture laid down by ARM, what it really means is "iOS target", i.e. a particular system configuration and level of ISA support:

哦,模棱两可的术语——这里的“架构”实际上并不是指 ISA 意义上的架构或 ARM 制定的系统架构,它真正的意思是“iOS 目标”,即特定的系统配置和 ISA 级别支持:

  • "armv7" represents a certain configuration of the ARMv7-A architecture.
  • "armv7s" represents a slightly different configuration of the ARMv7-A architecture, with more optional features present over the base "armv7" target.
  • "arm64" represents the AArch64 state of the ARMv8-A architecture; there is no "armv8" target.
  • “armv7”代表ARMv7-A架构的某种配置。
  • “armv7s”代表了 ARMv7-A 架构的一个稍微不同的配置,在基本的“armv7”目标上有更多的可选功能。
  • “arm64”代表ARMv8-A架构的AArch64状态;没有“armv8”目标。