Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 376 Bytes

readme.md

File metadata and controls

10 lines (8 loc) · 376 Bytes

#IR-Examples

Just a collection of some simple Crystal, C and C++ programs and their corresponding LLVM IR for learning purposes.

crystal build file.cr --emit llvm-ir --prelude=empty --no-debug #for crystal files
crystal build file.cr --emit llvm-ir --no-debug #for http.cr
clang -S -emit-llvm file.c #for c files
clang -cc1 -S -emit-llvm file.cpp #for cpp files