What is bfc?
bfc is an LLVM-based compiler that converts Brainfuck to native code.
Is this a serious project?
bfc is also a toy. I'm always pleasantly surprised when people find actual uses for it.
How fast is it?
I believe it's the second fastest BF compiler. Mats Linander's BF optimisation research project is still faster on many programs.
Why did you do this?
BF is a really good language for learning about compilers. With only eight operations, it's way more feasible to build elaborate features like speculative execution and instruction reordering. Also, it's fun.
What license is bfc under?
Sample programs are largely written by other authors and are under other licenses.
What is the logo?
It's a gingerbread man with BuFfalo plaid. I felt it captured the silliness of the whole project.
Why not write "Brainf***"?
The unfortunate name of brainfuck is discussed on the esolangs wiki. Some writers even use the term "the unmentionable programming language".
To avoid confusion (and help search engines), I use the term "brainfuck" on introductions, such as the home page. In other cases I use "BF".
Are there other BF optimisers?
Many! Some noteworthy examples I've seen are:
- https://github.com/stedolan/bf.sed (simple optimisations, but compiles directly to asm)
- Platonic Ideal Brainfuck Interpeter (src) (even has a profiler!)
- https://github.com/rmmh/beefit (uses LuaJIT)