LLVM in Action

Learn how LLVM generates machine code for different architectures from a high-level language.

We'll cover the following

In this section, let’s use LLVM’s Clang compiler to compile native code into LLVM IR. This will give a better idea of how LLVM works and will be useful for understanding how the compilers use LLVM later.

We first create a C file called sum.c with the following command:

Get hands-on with 1400+ tech skills courses.