Skip to content

2) Compile C to IR

Tim B edited this page Aug 5, 2017 · 1 revision

Compile C/C++ to IR Code

We will use clang as a LLVM-Frontend to create LLVM-IR Code. Just use clang / clang++ from command line:

clang++ -c -emit-llvm -S main.cpp -o main.ll

-c -emit-llvm tells the clang compiler to create IR-Code

Clone this wiki locally