Skip to content

A simple, small, moderately optimizing compiling interpreter for the brainfuck programming language, targeting Linux x86-64.

Notifications You must be signed in to change notification settings

primo-ppcg/bfci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bfci

A simple, small, moderately optimizing compiling interpreter for the brainfuck programming language, targeting Linux x86-64.

Compile

cc -Wall -Wextra -O3 -s -o bfci bfci.c src/*.c

Usage

As a compiler:

bfci -o program program.bf
./program
bfci -o hello -c"+[++[<+++>->+++<]>+++++++]<<<--.<.<--..<<---.<+++.<+.>>.>+.>.>-.<<<<+.[<]>+."
./hello

As a compiling interpreter:

bfci -x program.bf
bfci -xc"+[++[<+++>->+++<]>+++++++]<<<--.<.<--..<<---.<+++.<+.>>.>+.>.>-.<<<<+.[<]>+."

Implementation Details

Cell Behavior
Unsigned 8-bit, wrapping
Tape Behavior
65536 cells, circular
EOF Behavior
Leaves cell unmodified

About

A simple, small, moderately optimizing compiling interpreter for the brainfuck programming language, targeting Linux x86-64.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages