Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 547 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 547 Bytes

bf86

A brainfuck -> x86 compiler (linux only).

Build with make.

Usage

./bf86 "+[.+]" > a.out
chmod +x a.out
./a.out
# or 
./bf86 < test/hello.bf > a.out
chmod +x a.out
./a.out

Cells are 8-bit, with wrapping behaviour. 30720 cells are allocated. Moving the pointer outside of the bounds of the array will (most likely) cause a segmentation fault.

Behaviour of , on EOF is to leave the current cell unchanged.