.. | ||
a-精簡版.ll | ||
a-精簡版.o | ||
a-精簡版.s | ||
a.cpp | ||
a.ll | ||
a.o | ||
a.out | ||
b.out | ||
README |
========= Converting LLVM IR to an executable file ========= clang++ -S -emit-llvm a.cpp // get llvm ir llc a.ll -filetype=obj // get .o file g++ -o a.out a.o // converting to executable file ./a.out echo $? // get the return value of a.out ========= See also ========= http://llvmlite.pydata.org/en/latest/ https://mapping-high-level-constructs-to-llvm-ir.readthedocs.io/en/latest/