Announcement

Collapse
No announcement yet.

Building The Linux Kernel With Clang Is Becoming Popular Again

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
    grigi
    Senior Member

  • grigi
    replied
    The real issue with LLVM is that when you turn the optimiser up, it seems to generate faulty code quite often. This is one of the drivers in the Rust world in an alternate no-undefined-behaviour compiler. I ran into it with my own projects where debug compliling would deliver a working executable, but when enabling basic optimisation it has an ICE.
    Not that GCC is invulnerable to it, they just seem to take ICEs much more seriously.

    Leave a comment:

  • TheCanadianBacon
    Junior Member

  • TheCanadianBacon
    replied
    I present for those interested https://github.com/ClangBuiltLinux/linux

    Leave a comment:

  • bitman
    Senior Member

  • bitman
    replied
    Originally posted by Redfoxmoon View Post
    "shaking out GCC'isms" you mean supporting a shit compiler half-implementing GCC, cute. Long live GCC and GNU C
    Oh wow. You better back those strong words.

    Leave a comment:

  • Redfoxmoon
    Senior Member

  • Redfoxmoon
    replied
    "shaking out GCC'isms" you mean supporting a shit compiler half-implementing GCC, cute. Long live GCC and GNU C

    Leave a comment:

  • phoronix
    Administrator

  • Building The Linux Kernel With Clang Is Becoming Popular Again

    Phoronix: Building The Linux Kernel With Clang Is Becoming Popular Again

    Years ago there was much interest in the ability to build the mainline Linux kernel with the LLVM Clang compiler as an alternative to using the GCC compiler in order to ensure better code portability, shaking out GCC'isms, possible build speed improvements, and other benefits. But in recent years it seems to have waned in interest but now things are heating up again...

    http://www.phoronix.com/scan.php?pag...ng-Kernel-2018
Working...
X