NoxChimaera / tegan-lang

Academic project. Toy programming language compiled to LLVM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tegan-lang

Toy programming language

Build

Prerequisites:

  • Clang 3.5
  • LLVM 3.5

Build with command line:

$ make

Run

Run compiler directly:

$ dist/tlc <input> <output>

Run by script (will automatically run generated file):

$ ./run.sh <input> <output>

Optimization

Available optimization passes:

  • instruction combining,
  • expressions reassociating,
  • dead code elimination,
  • global value numbering,
  • CFG simplifying.

Read further: Wiki (Russian)

About

Academic project. Toy programming language compiled to LLVM

License:MIT License


Languages

Language:C++ 96.6%Language:Terra 1.5%Language:Perl 1.0%Language:Shell 0.5%Language:Makefile 0.4%