Hacker News new | ask | show | jobs
by TazeTSchnitzel 1387 days ago
Apple avoid this problem with their OS by having a separate architecture slice for modern x64 (Haswell+).
1 comments

glibc also supports loading different libraries based on CPU capabilities and some binary distros make use of that.

Still, there are always (admittedly diminishing) returns if you can target the exact CPU you have - pretty sure no binary distro ever had variants for AMD's TBM instructions [0] but my Gentoo install made use of them (which was made absolutely clear when trying to run any of that on a Zen 2 machine lol).

[0] https://en.wikipedia.org/wiki/X86_Bit_manipulation_instructi...