OMKOV Brainfuck Interpreter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jake Wakeling 6dbd3f9792 Restructure and refactor interpreter 1 month ago
build Update README and build script 1 month ago
ext Restructure and refactor interpreter 1 month ago
src Restructure and refactor interpreter 1 month ago
.gitignore Add base project files 1 month ago
CMakeLists.txt Restructure and refactor interpreter 1 month ago
LICENCE Add base project files 1 month ago
README.md Update README and build script 1 month ago

README.md

OBFI

OMKOV Brainfuck Interpreter

The OMKOV Brainfuck Interpreter (OBFI) is a minimal Brainfuck interpreter.

Implementation Details

  • OBFI uses single octet cells, and arithmetic wraps around.
  • OBFI provides 30000 cells.
  • OBFI will segfault if a program moves outside the array bounds.
  • OBFI will sets the current cell to -1 when EOF is input.

Optimisations

  • Compress > and < instructions.
  • Compress + and - instructions.
  • Replace [+] and [-] with a ‘set to zero’ instruction.
  • Replace [>] and [<] with a ‘go to zero’ instruction.

Build Instructions

OBFI uses CMake to build.
Binaries will be located in the bin directory.

UNIX Build

Run buildUNIX.sh in the build directory, or

cd build
cmake -DCMAKE_BUILD_TYPE=Release ../
make

Meta

Copyright (C) 2020, Jakob Wakeling
All rights reserved.
OMKOV Permissive Licence