3 ms·
I recently discovered the magic that is qemu-user-static on an Ubuntu system. Install that and you can instantly run binaries compiled for other architectures.
by NelsonMinar 4y ago
I recently discovered the magic that is qemu-user-static on an Ubuntu system. Install that and you can instantly run binaries compiled for other architectures. No need for a big VM or anything (*), just run the binary standalone. Combined with a cross-compiler toolchain and you have a nice way to do development for other platforms.
(*) the trick being the environment. I'm writing assembly code that just invokes Linux system calls. If you need shared libraries or other OS services, it gets more complicated.