You are not logged in.
Just wondering what experiences have been building a kernel with clang now that lto has been merged for 5.12.y. Here is a modified PKGBUILD that builds the 5.12.9 kernel with clang and thin lto.
I haven't been able to find any controlled comparison/benchmarks assessing the performance of a gcc compiled kernel vs clang compiled kernel. Perhaps someone else has a link to share?
EDIT: if you use dkms, you might need to tweak the headers as it may have issues. See: https://aur.archlinux.org/cgit/aur.git/ … trous#n160 (note that I haven't verified this myself/I do not use dkms).
source: https://www.phoronix.com/scan.php?page= … LTO-Merged
Last edited by graysky (2021-06-06 17:11:32)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Are you going to create a gcc based build with CONFIG_GCC_PLUGIN_STRUCTLEAK disabled to compare against the clang build?
Offline
I didn't plan to do any benchmarking myself, just asking here for experience and links. Googling myself failed to give anything relevant.
Last edited by graysky (2021-06-07 10:35:16)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
https://bbs.archlinux.org/viewtopic.php?id=258717
Remember seeing this thread previously, looks like some chatter there you might be interested in?
"the wind-blown way, wanna win? don't play"
Offline