Archive for November, 2014

Clang/LLVM to compile Linux kernel

What are the benefits of LLVM?

http://stackoverflow.com/questions/172863/what-are-the-greatest-benefits-of-llvm

Why is the LLVM important:

http://en.wikipedia.org/wiki/Static_single_assignment_form

http://www.cs.utexas.edu/users/mckinley/380C/lecs/07.pdf

Introduction:

http://www.cs.sfu.ca/~wsumner/teaching/LLVMIntro.pdf

Its basic construct:

http://llvm.org/docs/LangRef.html

As started by Apple using LLVM to compile its OS, now the movement is spreading to Linux kernel as well.

https://www.youtube.com/watch?v=YffCWR3nqP4 (Reinventing the compiler – Clang)

Current status for Linux kernel:

http://llvm.linuxfoundation.org/index.php/Main_Page#Why_use_Clang.2FLLVM_with_the_Linux_Kernel.3F

Create a working compiler with the LLVM framework, Part 1

http://www.ibm.com/developerworks/library/os-createcompilerllvm1/index.html

http://llvm.org/docs/tutorial/index.html

http://llvm.linuxfoundation.org/index.php/Main_Page

http://www.phoronix.com/scan.php?page=news_item&px=MTY2MjY

http://llvm.org/devmtg/2014-02/slides/moller-llvmlinux.pdf

http://llvm.org/devmtg/2012-04-12/Slides/Mark_Charlebois.pdf

http://clang.llvm.org/features.html

LLVM and its varied libraries (reusable by all other languages – not just Clang, so create ONCE, reused many times):

http://llvm.org/releases/2.7/docs/UsingLibraries.html

LLVM LInk Time Optimization:

http://www.slideshare.net/vivekpansara/llvm-seminar

http://llvm.org/docs/Passes.html

Good thing is: these LLVM tools are reusable on binary output generated from different frontend (eg, Ruby, ActionScript etc) and not just Clang.

%d bloggers like this: