Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

armv8 64 bit architecture support in clang

I'm trying to use clang to cross compile to 64 bit armv8. My clang version info is the following.

$ 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.

If it is supported, how do I build for it? If it is not supported, what is the best approximation within clang?

Thanks! Damon

like image 991
user2705498 Avatar asked Mar 27 '14 21:03

user2705498


1 Answers

In clang, -arch arm64 means ARMv8 AArch64. That is, the 64-bit version of the ARMv8 instruction set architecture.

like image 199
Variable Length Coder Avatar answered Oct 11 '22 01:10

Variable Length Coder