Re:Show HN: Compile for Arm at native speeds in an emulated ...
by bsdimp on Wednesday September 01, 2021 @12:07PM
(#28381641)
You forgot the following steps:
Profile to see what's the slowest thing
Make a native version of that.
In FreeBSD package builder setup, we also have /bin/sh and a few other heavily used binaries that are native because it shaves hours or days off a package run (itself takes 10 days, even optimized like this).
This is equivalent to building a x86-to-aarch64 cross-compiler and point the sysroot to a ARM64 rootfs, but more intuitive to users unfamiliar with cross toolchains, and more friendly to those mad configure scripts which insist on assuming host = target and detect everything automatically.