Blob


1 bfc -- a brainfuck compiler
2 ===========================
4 bfc is a simple brainfuck compiler. It's written in Haskell because I
5 hate myself and outputs QBE because why not.
7 Makefiles are clunky, hard to write and errors prone, but they also
8 have their shortcomings! You can use make to build bfc:
10 $ make
12 Usage:
14 $ bfc sources... > program.ssa
15 $ qbe program.ssa > program.S
16 $ cc -o program program.S && ./prog
18 bfc reads from standard input if no arguments are given.
20 bfc is release into the public domain.