Skip to content

LLVM Brainfuck compiler with JIT support written in C++11

Notifications You must be signed in to change notification settings

odemiral/Brainfrak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brainfuck LLVM JIT

Brainfuck compiler with JIT support written in C++11 using the mighty LLVM!

Developed in Linux, ported to Windows.

Usage

You can either

  1. Pass the brainfuck code as an argument

    BrainfuckJIT.exe ++++++++[>++++[>++>+++>+++>+<<<<-]>+>->+>>+[<]<-]>>.>>---.+++++++..+++.>.<<-.>.+++.------.--------.>+.>++.

  2. Pass the path to the source using -f command.

    BrainfuckJIT.exe -f path/to/file

Dependencies

LLVM 3.5.0 or higher (it might also work with previous versions, but I haven't tested)

How to Compile

For Windows, you can either use CMake, or you can open .vxproj in visual studio. For Linux, use CMake to build it.

License

MIT Licence

TODO

  1. Integrate different JIT optimizations
  2. Implement malloc function

About

LLVM Brainfuck compiler with JIT support written in C++11

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published