Cross-Compile a C Program for ARM64 and Run It with QEMU User-Mode
Build a C program for 64-bit ARM (aarch64) on an x86 Debian host with a GCC cross toolchain, then check the binary by running it under qemu-aarch64.
Build a C program for 64-bit ARM (aarch64) on an x86 Debian host with a GCC cross toolchain, then check the binary by running it under qemu-aarch64.
Build a small C program for 32-bit ARM on an x86 Debian or Ubuntu machine, then run it with QEMU user-mode emulation instead of a full ARM system.