Android Studio 64 bit inline ARM assembly
问题 I am trying to run some inline assembly code for aarch64 from Android Studio 3.4.2 and I got a compilation error error: Don't know how to handle indirect register inputs yet for constraint 'r' . My code snippet as follows std::string system_file = "/system/bin/sh"; std::int64_t file_descriptor = -1; #ifdef __aarch64__ __asm__ volatile("mov x8, #180\n\t" "mov x0, %1\n\t" "mov x1, #0\n\t" "svc #1\n\t" "mov %0, x0\n\t" :"=r"(file_descriptor) :"r"(system_file) :"x0","x1","x8" ); #endif ARM64