The purpose of this repository is to compare LLVM and libjit by developping a Brainfuck interpreter.
$ git submodule init
$ git submodule update
$ mkdir build
$ cd !^
$ cmake ..
$ make
$ ./test_jit --llvm file.bf
or
$ ./test_jit --libjit file.bf
this will print the intermediary representation of the jitted function to stderr and the result of the brainfuck program to stdout.
$ ./test_jit --libjit <(echo ',++.') 2>/dev/null <<<a
result:
c