r/linux_programming • u/Clean-Upstairs-8481 • 34m ago
Cross-Compile C++ for ARM64: A Guide with QEMU Emulation
techfortalk.co.ukRecently, I taught one of my students (trainees) how cross-compilation works, what aspects are involved in it, the motivation behind it, etc. At the end of the discussion, I wanted to quickly demonstrate it in action but didn't have the target hardware ready. So what did I do? I fell back on one of my favorite emulation tools, QEMU. I worked with QEMU back in 2009 and then never had the opportunity to work with it again until now. Things have changed quite a lot, and it is amazing to see how powerful it has become. So in this post, I have described all the steps that you will need to get QEMU up and running if you are in a similar situation to mine.