Questions tagged [arm64]

64-bit ARM architecture, also known as AArch64.

arm64
Filter by
Sorted by
Tagged with
922 votes
66 answers
777k views

Xcode building for iOS Simulator, but linking in an object file built for iOS, for architecture 'arm64'

I am trying to get a large (and working on Xcode 11!) project building in Xcode 12 (beta 5) to prepare for iOS 14. The codebase was previously in Objective-C, but now it contains both Objective-C and ...
btxios's user avatar
  • 9,405
244 votes
3 answers
264k views

What is difference between arm64 and armhf?

Raspberry Pi Type 3 has 64-bit CPU, but its architecture is not arm64 but armhf. What is the difference between arm64 and armhf?
furushchev's user avatar
  • 2,629
232 votes
5 answers
257k views

Differences between arm64 and aarch64

I have two "unlocked" devices, an iPad mini 3, and a Galaxy Edge 6, both endowed with a terminal and a minimalistic set of unix commands. I thought both devices have arm64 processors but when I ran ...
Olórin's user avatar
  • 3,527
91 votes
12 answers
72k views

iOS app submission : missing 64-bit support

I sent an app yesterday for review, with no problem. I then realized that I had a very little fix to do (changing the max zoom level of a map from 19 to 18, nothing else), so I removed the binary from ...
Tim Autin's user avatar
  • 6,102
85 votes
3 answers
58k views

Xcode arm64 Vs arm64e

Xcode 10.1 mention Support for arm64e (Preview). Anyone have any idea about arm64e. Any difference between arm64 and arm64e. https://developer.apple.com/documentation/xcode_release_notes/...
Puvanarajan's user avatar
  • 2,896
73 votes
4 answers
35k views

CocoaPods arm64 issue

When using Podfile for developing iOS 7 app with Xcode5, we always got this issue. After some searching, seems like no final resolve from CocoaPods ? Maybe resolved at this moment when you see this....
Forrest's user avatar
  • 125k
50 votes
2 answers
32k views

Unknown host CPU architecture: arm64 , Android NDK SiliconM1 Apple MacBook Pro

I've got a project that is working fine in windows os but when I switched my laptop and opened an existing project in MacBook Pro M1. I'm unable to run an existing android project in MacBook pro M1. ...
Atif AbbAsi's user avatar
  • 5,849
46 votes
2 answers
3k views

How does clang generate non-looping code for sum of squares?

I admit the answer to this may be 'some very specific magic', but I'm kind of shocked by what I've observed here. I was wondering if anyone had insight to how these types of optimizations work. I find ...
beeselmane's user avatar
  • 1,170
32 votes
6 answers
78k views

How to set Architecture for docker build to arm64?

I have a Dockerfile that I run on amd64 but want to run on arm64. Since go build tool takes GOARCH=arm64 as argument I don't need any other cross compilation tool to make the binary. # Run the build ...
tirithen's user avatar
  • 3,289
28 votes
3 answers
17k views

NSInteger and NSUInteger in a mixed 64bit / 32bit environment

I have a fair amount of string format specifiers in NSLog / NSAssert etc. calls which use %d and %u with NSInteger (= int on 32bit) and NSUInteger (= unsigned int on 32bit) types respectively. When ...
Pieter's user avatar
  • 17.6k
24 votes
1 answer
35k views

What are the semantics of ADRP and ADRL instructions in ARM assembly?

ADRP Address of 4KB page at a PC-relative offset. ADRL Load a PC-relative address into a register. It is similar to the ADR instruction. ADRL can load a wider range of addresses than ADR ...
sherlock's user avatar
  • 2,557
23 votes
4 answers
18k views

Why the Missing 64-bit support happened when upload to the iTunes connect?

I try to upload the file via Application Loader. But I got the mail from iTunes store. Missing 64-bit support - Beginning on February 1, 2015 new iOS apps submitted to the App Store must include 64-...
Martin's user avatar
  • 2,853
23 votes
3 answers
41k views

Are armv8 and arm64 the same?

In xcode which is the developement environment for iOS. When creating a new project. Build settings states that it supports armv7, armv7s and arm64 architectures. The following chart shows apple ...
hasan's user avatar
  • 24.1k
22 votes
3 answers
27k views

How to determine host value for configure when using cross compiler

General question: If I use a cross compiler, how can I tell the value of the "--host" option I should give when I run configure? Specific: I'm using cross compiler for arm64 arch. What is the correct ...
Omer Dagan's user avatar
  • 15.5k
22 votes
3 answers
26k views

Which Android Virtual Device should be used to launch arm64-v8a APK on Windows?

I have a common APK app that utilizes 'arm64-v8a' 'armeabi-v7a' ABIs. How should I tune an Android Virtual Device to be able to launch this app? I tried different combinations but it still does not ...
Volodymyr Nabok's user avatar
21 votes
3 answers
8k views

How to replace the bundled Dart SDK in Flutter to run natively on Apple Silicon (ARM64)?

Dart SDK officially supports ARM64 and as of now, 2.14.2 is the latest (stable) Dart SDK that has support for ARM64. Though it was the same version that was bundled in my Flutter setup, it seemed to ...
Ashwin's user avatar
  • 353
20 votes
4 answers
20k views

How to update our static library architecture for suporting arm64 Build?

Few days ago i create static-library (Universal) that work's fine with Xcode5.0 SDK7. After Update Xcode5.1 with SDK7.1 that not work if i select simulator iPhone Retina(4-inch 64-bit). Then i am ...
Nitin Gohel's user avatar
  • 49.6k
19 votes
2 answers
30k views

Docker exec /bin/sh: exec format error on Arm64

My Dockerfile works on x86 machine, but fails on the machine with arm64 architecture; specifically on a1.2xlarge (an aws EC2-instance). Error on running docker compose up -d #0 0.462 exec /bin/sh: ...
red-devil's user avatar
  • 1,014
19 votes
11 answers
7k views

Parse API 1.6.4 - cannot build project

I downloaded the new iOS Parse API (1.6.4) and tried to build my project. When I do, I get this error: Undefined symbols for architecture arm64" "_BFTaskMultipleExceptionsException", referenced from: ...
mirap's user avatar
  • 1,266
19 votes
1 answer
3k views

Is it possible for other x86-64 emulators on M1 to leverage the same optimizations used by Rosetta 2?

I am curious about the vastly different performance characteristics of running x86-64 binaries on the Apple M1 platform using Rosetta 2 vs. emulation, for example what Docker Desktop currently does ...
NReilingh's user avatar
  • 1,809
19 votes
2 answers
17k views

mach-o file, but is an incompatible architecture have 'x86_64', need 'arm64e' M1 MAC

from PyQt6.QtWidgets import * from model.Department import Department from view.main_window import Ui_Form from model.Department import Department, Employee class Homewidget(QWidget,Ui_Form): ...
MrAhmed Alhamed's user avatar
18 votes
2 answers
33k views

gcc; arm64; aarch64; unrecognized command line option '-mfpu=neon'

I got compilation error: unrecognized command line option '-mfpu=neon'* when tried to compile with -mfpu=neon flag. Actually, any 'mfpu' options I tried failed. However in documentation this ...
user3124812's user avatar
  • 1,929
17 votes
1 answer
14k views

QEMU "-bios" vs. "-kernel" vs. "-device loader,file=..."

For background, I'm running bare-metal QEMU-4.1.0 on aarch64. There are several ways to get QEMU to load compiled code into memory. I'd like to understand what the underlying differences are, because ...
Lance E.T. Compte's user avatar
17 votes
2 answers
2k views

Forcing 64-bit long doubles?

I'm building musl-libc statically for a project on an aarch64 (ARM 64-bit) platform. I'd like to avoid any soft floating point libraries such as GCC's soft float library routines. However, these are ...
tonysdg's user avatar
  • 1,365
15 votes
4 answers
3k views

-[NSInvocation getReturnValue:] with double value produces 0 unexpectedly

I am trying to call a method that returns a double using NSInvocation. But I found that it does not working in 64 bit iOS apps. It works on on OS X, in the simulator -- both 32-bit and 64 bit -- iPad ...
Bryan Chen's user avatar
  • 46.2k
15 votes
3 answers
7k views

Does an Android Studio Linux arm64 version exist?

Does an Android Studio Linux arm64 version exist? I think now is a good time to support it since the new Mac M1 machine is arm64 and some work is being done to run Linux on top of it. Also I am ...
Guy Luz's user avatar
  • 3,721
14 votes
3 answers
14k views

ARM64: LDXR/STXR vs LDAXR/STLXR

On iOS, there are two similar functions, OSAtomicAdd32 and OSAtomicAdd32Barrier. I'm wondering when you would need the Barrier variant. Disassembled, they are: _OSAtomicAdd32: ldxr w8, [x1] add ...
Dave Lee's user avatar
  • 6,409
14 votes
1 answer
11k views

Does AArch64 support unaligned access?

Does AArch64 support unaligned access natively? I am asking because currently ocamlopt assumes "no".
Demi's user avatar
  • 3,595
14 votes
2 answers
2k views

Is there an API to detect CPU features on iOS?

I have some cryptography code that has multiple implementations, selecting which implementation at runtime based on the features of the CPU it is running on. Porting this has been straightforward so ...
Myria's user avatar
  • 3,562
13 votes
10 answers
22k views

duplicate symbols for architecture arm64 after Xcode 8.0 update

I get duplicate symbols error after I updated my Xcode. (find the code down) Does anybody get this too? And how could be solved? I tried to remove -ObjC linker flag from the "Other Linker Flags" ...
Andreea Mateevici's user avatar
13 votes
3 answers
23k views

Do we need to compile iOS App for both "armv7" and "arm64" if my deployment target is 8.0?

My App supports from iOS8.0 and above. And I know that from iOS7 onwards its arm64 bit architecture. In that case do we need to compile the binary for both "armv7" and "arm64" slices? If I compile ...
arango_86's user avatar
  • 4,300
13 votes
3 answers
4k views

Performance of unaligned SIMD load/store on aarch64

An older answer indicates that aarch64 supports unaligned reads/writes and has a mention about performance cost, but it's unclear if the answer covers only the ALU or SIMD (128-bit register) ...
hsivonen's user avatar
  • 7,966
13 votes
2 answers
2k views

asm("trap") on 64-bit iOS devices

In my homegrown assert macro, I've been using asm("trap") on iOS devices (or asm("int3") on iOS simulators) to break in the debugger. However, in 64-bit builds for devices, I get an "unrecognized ...
leremjs's user avatar
  • 1,013
12 votes
4 answers
4k views

Why does integer division by -1 (negative one) result in FPE?

I have an assignment of expaining some seemingly strange behaviors of C code (running on x86). I can easily complete everything else but this one has really confused me. Code snippet 1 outputs -...
iBug's user avatar
  • 36.4k
12 votes
1 answer
11k views

Is there performance advantage to ARM64

Recently 64-bit ARM mobiles started appearing. But is there any practical advantage to building an application 64-bit? Specifically considering application that does not have much use for the ...
Jan Hudec's user avatar
  • 75k
12 votes
2 answers
2k views

Consequence of violating macOS's ARM64 calling convention

I'm porting some AArch64/ARM64/Apple Silicon assembly code from Linux to macOS. This code uses all 31 available registers (stack pointer doesn't count) to avoid almost all cases of spilling; the Linux ...
swineone's user avatar
  • 2,568
12 votes
9 answers
5k views

Packaging error when switching to arm64 (arm5 was OK)

I just plugged in a new iPhone 6, created a provisioning profile and then I launched the app I'm developing on the device. It compiled fine, but at linking stage it errored out with: ...
aledalgrande's user avatar
  • 5,187
12 votes
7 answers
10k views

Compile boost as universal library (Intel and Apple Silicon architectures)

I am trying to build boost library as dylib on MacOS. I need to build it for both the Intel architecture and the upcoming Apple Silicon (arm64) architecture. I downloaded boost and ran the following ...
Anil8753's user avatar
  • 2,703
12 votes
1 answer
436 views

SIMD-within-a-register version of min/max

Suppose I have two uint16_t[4] arrays, a and b. Each integer in these arrays is in the range [0, 16383], so bits 14 and 15 aren't set. Then I have some code to find the minimum and maximum among a[i] ...
swineone's user avatar
  • 2,568
12 votes
1 answer
3k views

Android emulator supporting ARMv8

I need to create an Android virtual device supporting ARMv8 system image on aarch32 and aarch64 both. Does Android Studio emulator support ARMv8 system image in its AVD manager? Or is there any other ...
jousa's user avatar
  • 121
11 votes
6 answers
38k views

Symbol(s) not found for architecture arm64 - XCode

I'm trying to build my react native project on a Mac Intel, but keep getting the next error: Showing All Messages Undefined symbol: _swift_stdlib_isStackAllocationSafe Undefined symbols for ...
Luis Quiroga's user avatar
11 votes
1 answer
11k views

Docker - No matching manifest for linux/arm64/v8 in the manifest list entries - Ubuntu 22.04/arm64/v8

I have installed Docker and docker compose and tested it and i got the “Hello World” message, so everything works fine After that i tried to install a Node.js backend, but idk why i keep getting this ...
Ahmed AlNeaimy's user avatar
11 votes
1 answer
14k views

What does the exclamation mark mean in the end of an A64 instruction?

The documentation for LDP and STP gives an example instruction with an exclamation mark in the end: LDP X8, X2, [X0, #0x10]! Also the documentation about porting A32 PUSH/POP instructions into A64 ...
Serge Rogatch's user avatar
11 votes
1 answer
13k views

Building ffmpeg iOS libraries for armv7, armv7s, arm64, i386 and universal

I have seen several scripts to build FFmpeg API for armv7, 7s and i386 but couldn't find anything which would work for armv64 as well. Some of the answers on other threads of this forum suggested to ...
sandy's user avatar
  • 2,157
11 votes
1 answer
13k views

How to debug an aarch64 translation fault?

I am writing a simple kernel in armv8 (aarch64). MMU config: 48 VA bits (T1SZ=64-48=16) 4K page size All physical RAM flat mapped into kernel virtual memory (on TTBR1_EL1) (MMU is active with ...
maxbc's user avatar
  • 997
11 votes
1 answer
9k views

How to compile C++ program on Windows for ARM using LLVM?

Aim Compile a C++ program on Windows for ARM using only LLVM. Why LLVM because of permissive licensing. I'm starting to wonder if my understanding of LLVM is correct. On the host machine do Use ...
robor's user avatar
  • 3,059
10 votes
2 answers
5k views

When debugging, GoLand can not evaluate a function on M1

When debugging, use the Evaluate expression and try to evaluate a function. The result is shown as: "backend does not support function calls". Why? MacBook Pro M1 GoLand 2021.1.3 Go 1.16.5 ...
graydove's user avatar
  • 133
10 votes
2 answers
10k views

.NET Core 3.0 Publish for ARM64

Does anyone know how to publish a .NET Core 3.0 application for ARM64? I can only select "linux-arm" but no "linux-arm64". Setting linux-arm in combination with x64 also doesnt work. It says the ...
Daniel P.'s user avatar
  • 831
10 votes
2 answers
5k views

Obtaining remainder using single aarch64 instruction?

I am writing some assembly code for ARM8 (aarch64). I want to do a division and use the remainder obtained for further calculations. In x86 when I use 'div', and I know my remainder is kept in RDX. ...
c_mnon's user avatar
  • 376
10 votes
4 answers
33k views

gcc-7: error: unrecognized command line option ‘-m64’

I'm trying to compile C code on a Jetson Nano and I get this error during compiling. I tried removing any occurrence of 'm -64' but it seems like its added automatically. This is the cmd where it ...
Jen's user avatar
  • 121

1
2 3 4 5
40