Building the kernel with clang
Building the kernel with clang
Posted Sep 19, 2017 20:08 UTC (Tue) by ndesaulniers (subscriber, #110768)In reply to: Building the kernel with clang by sfeam
Parent article: Building the kernel with Clang
Behan Webster was explaining to me at LPC that this was mostly due to ARM's "Unified Assembly Language" in that gcc will pass inline assembly through to the assembler without validation, while Clang will validate the inline assembly is valid by UAL rules. If the arch/arm[64] code was converted to all use UAL, then I think the major obstacle for LLVM would be removed. Though it might be worthwhile to disable that functionality in LLVM, if it were implemented.