Skip to content
Compiler from C to brainfuck
OCaml C Shell
Branch: master
Clone or download
Latest commit b10abcb Oct 19, 2014
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Add an example : a brainfuck compiler Oct 18, 2014
src Add XOR Oct 19, 2014
tests Fix: using arrays as arguments for functions Oct 16, 2014
.gitignore Update .gitignore Oct 8, 2014
LICENSE Add license, readme an .gitignore Jul 27, 2014
Makefile Organization Jul 27, 2014 Update README Oct 15, 2014


c2bf is a compiler from a subset of C to brainfuck.


Just run make build to build c2bf.

How to use

usage: ./c2bf.native [options] <C source-file>. The brainfuck output is in

I recommend you beef as a brainfuck interpreter.

See ./c2bf.native --help for options.


There are examples in the directory tests. You should try them !

Why ? This is useless !

Because it's fun, and I like having fun.

You can’t perform that action at this time.