A Basic Look At How The LLVM Compiler Works

Written by Michael Larabel in LLVM on 29 November 2012 at 10:39 AM EST. Add A Comment
LLVM
The LLVM compiler infrastructure is frequently talked about on Phoronix whether it be about its Clang C/C++ compiler or one of the innovative use-cases for LLVM such as with the LLVMpipe Gallium3D driver or as a JIT engine within some free software projects like Mono. However, for those that don't understand much of the internals of LLVM, here's a brief overview.

The LLVM project has posted a new blog entry about the life of an instruction in LLVM.

This blog post basically goes over the process of LLVM's multiple compilation stages in how C source-code is ultimately parsed and then transformed and lowered into binary machine code.

This isn't too technical of a posting but rather just a nice overview of the LLVM process. Covered processes include starting out with Clang and generated LLVM IR, SelectionDAG instruction selection, scheduling and emitting a machine instruction, register allocatio, emitting code, the MC layer, and then the assemblers/disassemblers.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week