Brainfuck compiler with JIT support written in C++11 using the mighty LLVM!
Developed in Linux, ported to Windows.
You can either
-
Pass the brainfuck code as an argument
BrainfuckJIT.exe ++++++++[>++++[>++>+++>+++>+<<<<-]>+>->+>>+[<]<-]>>.>>---.+++++++..+++.>.<<-.>.+++.------.--------.>+.>++.
-
Pass the path to the source using -f command.
BrainfuckJIT.exe -f path/to/file
LLVM 3.5.0 or higher (it might also work with previous versions, but I haven't tested)
For Windows, you can either use CMake, or you can open .vxproj in visual studio. For Linux, use CMake to build it.
MIT Licence
- Integrate different JIT optimizations
- Implement malloc function