Skip to content
Compiler from C to brainfuck
OCaml C Shell
Branch: master
Clone or download
Latest commit b10abcb Oct 19, 2014
Permalink
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
README.md Update README Oct 15, 2014

README.md

c2bf

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

Build

Just run make build to build c2bf.

How to use

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

I recommend you beef http://kiyuko.org/software/beef as a brainfuck interpreter.

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

Examples

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.