Skip to content

jubitaneja/calc-compiler

 
 

Repository files navigation

Skeleton for "calc" language compiler.

build the compiler like this:

mkdir build
cd build
cmake .. -DLLVM_DIR=$LLVM -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_BUILD_TYPE=Debug
make

run the compiler like this:

./calcc < input_file 2> out.ll

run the generated code like this:

clang ../driver.c out.ll -Wall -o calc

About

tiny language compiler for class

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • LLVM 100.0%