4 ms·
> I just think it's a potentially awkward situation when it comes to something as core as the kernel; which has traditionally only required GCC. Clang is start
by SubjectToChange 4y ago
> I just think it's a potentially awkward situation when it comes to something as core as the kernel; which has traditionally only required GCC.
Clang is starting to leapfrog GCC here. IIRC, some features are better supported and/or more advanced on Clang, other features (e.g. LTO) are exclusive to it. Not to mention it's almost a certainty for Clang to land kernel PGO support long before GCC, in fact Google already uses it in production Android kernels.
Anyway, rust or not, linux is being decoupled from GCC.
- dralley 4y agoLTO is not exclusive to clang. "thin" LTO is. It just happens to be more commonly used, since it's faster and uses less memory.
- SubjectToChange 4y ago> LTO is not exclusive to clang. This is in the context of the Linux kernel, which only mainlined Clang LTO support in 5.12. AFAIK, GCC LTO has yet to be accepted.