Preprocessor Brainfuck Save

A brainfuck interpreter using only the C preprocessor

Project README

Preprocessor Brainfuck Interpreter

This project contains an interpreter for brainfuck programs that is written solely in C preprocessor macros.

How to use

  1. Generate the headers
$ make
  1. Encode your program into main.h, and provide the file used as input
$ ./bf_to_main.sh hello.bf /dev/null > main.h
  1. Run the brainfuck interpreter
$ make run

or

$ make run DEBUG=1

Note

The preprocessor brainfuck interpreter is very very inefficient and will use around 16 GIGABYTES of memory and 15 to 20 minutes of processing time while running hello.bf.

Open Source Agenda is not affiliated with "Preprocessor Brainfuck" Project. README Source: Ferdi265/preprocessor_brainfuck
Stars
87
Open Issues
0
Last Commit
4 years ago

Open Source Agenda Badge

Open Source Agenda Rating