A simple, small, moderately optimizing compiling interpreter for the brainfuck programming language, targeting Linux x86-64.
cc -Wall -Wextra -O3 -s -o bfci bfci.c src/*.c
As a compiler:
bfci -o program program.bf
./program
bfci -o hello -c"+[++[<+++>->+++<]>+++++++]<<<--.<.<--..<<---.<+++.<+.>>.>+.>.>-.<<<<+.[<]>+."
./hello
As a compiling interpreter:
bfci -x program.bf
bfci -xc"+[++[<+++>->+++<]>+++++++]<<<--.<.<--..<<---.<+++.<+.>>.>+.>.>-.<<<<+.[<]>+."
- Cell Behavior
- Unsigned 8-bit, wrapping
- Tape Behavior
- 65536 cells, circular
- EOF Behavior
- Leaves cell unmodified