xcode clang 中的 armv8 64 位架构支持
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22699468/
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
armv8 64 bit architecture support in clang
提问by user2705498
I'm trying to use clang to cross compile to 64 bit armv8. My clang version info is the following.
我正在尝试使用 clang 交叉编译为 64 位 armv8。我的 clang 版本信息如下。
$ clang --version
Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
The following work
以下工作
clang -arch armv7
clang -arch arm64
But I have not been able to find how to build for armv8 64 bit, or even if it is supported.
但是我一直无法找到如何为 armv8 64 位构建,或者即使它受支持。
If it is supported, how do I build for it? If it is not supported, what is the best approximation within clang?
如果支持,我该如何构建它?如果不支持,clang 中的最佳近似值是多少?
Thanks! Damon
谢谢!达蒙
回答by Variable Length Coder
In clang, -arch arm64
means ARMv8 AArch64
. That is, the 64-bit version of the ARMv8 instruction set architecture.
在叮当声中,-arch arm64
意味着ARMv8 AArch64
。即 64 位版本的 ARMv8 指令集架构。