Announcement

Collapse
No announcement yet.

Ringing In 2020 By Clang'ing The Linux 5.5 Kernel - Benchmarks Of GCC vs. Clang Built Kernels

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ringing In 2020 By Clang'ing The Linux 5.5 Kernel - Benchmarks Of GCC vs. Clang Built Kernels

    Phoronix: Ringing In 2020 By Clang'ing The Linux 5.5 Kernel - Benchmarks Of GCC vs. Clang Built Kernels

    One of the interesting milestones this year in the compiler world was the ability with LLVM Clang 9.0 to compile Linux 5.3+ for x86_64 without needing any extra patches to either the kernel or the LLVM/Clang compiler. That initial support in Linux 5.3 was not without a few issues, but on Linux 5.5 the experience is in great shape with the stable Clang compiler.

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    Would love to know the difference between compiling the kernel with ld.bfd and ld.lld linkers, ls LLVM's offering faster?

    Comment


    • #3
      While it was never, exactly, a competition, the friendly goal of being at least equal, if not better, than the other one, have managed to encourage improvements to both compilers to the point of essentially equivalent generated code performance. That has been a good result for all.

      Comment


      • #4
        GCC LTO vs Clang LTO for linux kernel would be interesting too.

        Comment


        • #5
          Originally posted by pyler View Post
          GCC LTO vs Clang LTO for linux kernel would be interesting too.
          Is LTOing the Kernel even possible without out-of-tree patches?

          Comment


          • #6
            I'm surprised there even are measurable differences. The kernel schiuld not do much heavy lifting, bar some checksums/cryptography which is likely handoptimized with intrinsincs or asm

            Comment


            • #7
              I can imagine some code is very hot and sensitive.

              Comment


              • #8
                So, the kernel should be also possibe to be built by AOCC too?

                Comment


                • #9
                  If AOCC is based on LLVM 9 then yes

                  Comment


                  • #10
                    Very impressive performance from the new kid.

                    Comment

                    Working...
                    X