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.

    http://www.phoronix.com/vr.php?view=28732

  • #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
          I'm going to savour the delicious pun in the title for a few minutes.

          Happy New Year!

          Comment


          • #6
            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


            • #7
              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


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

                Comment


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

                  Comment


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

                    Comment

                    Working...
                    X