A Brainfuck interpreter+REPL for x86_64 Linux, written in assembly.
- Supports program size upto 64 KiB and has 65536 cells.
- Doesn't require any third-party libraries (not even a
libc
). - The minimal version (
bf-min
) is just 316 bytes! (WIP) - Can be used interactively or by loading the code from a file.
Make sure nasm
and binutils
are installed. Clone the repository and run ./bld
.
Alternatively, get the latest binary release from here.
Run ./bf
for the REPL or ./bf <filename>
to run code from a file. To exit, simply give it an empty command.
Note
Within a session, the position of the data pointer, as well as the data itself, is preserved across commands.
Click here for some sample Brainfuck programs and other information.