Linaro g++ aarch64 compilation cause unalignment fault
问题 I'm using linaro g++ for ARM arch64 to compile a simple cpp file: int main() { char *helloMain = "main module (crm.c)"; long faculty, num = 12; int stop,mainLoop = 1; char word[80] = ""; } After objdump the generated elf file, I got its asm code: 0000000000001270 <main>: int main() { 1270: d101c3ff sub sp, sp, #0x70 char *helloMain = "main module (crm.c)"; 1274: 90000020 adrp x0, 5000 <_malloc_trim_r+0x160> 1278: 9111c000 add x0, x0, #0x470 127c: f90003e0 str x0, [sp] long faculty, num = 12;