Re:The cpu_features library
by saagarjha on Wednesday February 07, 2018 @04:37PM
(#16328243)
Yes, I realized that I didn't take that into account. A follow up though: could a executable loader find and "trim" implementations that aren't optimize for the processor it's using, if it's properly marked in the binary?
[ Parent
| on HN ]
Something like this is done by gcc & clang:
https://gcc.gnu.org/wiki/FunctionMultiVersioning
https://lwn.net/Articles/691932/
https://llvm.org/devmtg/2014-10/Slides/Christopher-Function%...