A simple compiler for Brainfuck, which generates C code and uses GCC to compile this C code.
Clone the repo to your local machine and then run
$ ./scripts/build.sh
from within the repo folder.
You can compile any brainfuck program using the commandline:
$ ./bfc <inputFile> <outputFile>
NOTE: The GCC needs to be installed and available in your $PATH
.
- Generate optimized C code
- Use LLVM as backend