|
|
Log in / Subscribe / Register

Building the kernel with clang

Building the kernel with clang

Posted Sep 20, 2017 18:01 UTC (Wed) by valarauca (guest, #109490)
In reply to: Building the kernel with clang by WolfWings
Parent article: Building the kernel with Clang

I believe you are correct.

By default Clang/LLVM tracks _closely_ to GAS, but with less magic https://llvm.org/docs/LangRef.html#inline-assembler-expre...

Small things like `add` on x64 requires a suffix to state if its an `addw`, `addq`, etc. for example https://clang.llvm.org/compatibility.html#inline-asm


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds