3 ms·
> In less fanciful languages like C or C++, the programmer needs to check what the processor supports themselves. I think by now most C++ compilers can target
by josefx 6y ago
> In less fanciful languages like C or C++, the programmer needs to check what the processor supports themselves.
I think by now most C++ compilers can target multiple combinations of feature flags and select a supported code path during program startup. The Intel compiler could do it years ago, but the resulting code was crippled on AMD CPUs.