Virtual-Machine / ir-examples

LLVM IR Examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#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

About

LLVM IR Examples


Languages

Language:LLVM 99.9%Language:C 0.0%Language:Crystal 0.0%Language:C++ 0.0%