obfc homepage
This is the home of my optimizing brainfuck compiler
obfc. Currently, it is still in its beta development
stage. It seems to work but hasn't had much testing yet.
The main reason why I wrote it was that I like the brainfuck
language and that I wanted to write my own little compiler.
It has the following features/bugs:
- can combine several brainfuck instructions into
one pseudo-instruction which can be translated
efficiently by the backend(s)
- can optimize certain loops into a single
pseudo-instruction
- can generate x86 assembler (for nasm under Linux)
and C as output (other backends can easily be added)
Version 0.0.3 corrects a bug in the "[]"-balance checking
code which could lead to a crash. Many thanks go to David
Barnett for reporting the issue and providing a fix.
Version 0.0.2 corrects a bug in the end-of-file handling that
compiled brainfuck programs get for their input. Also, the
backend can now be selected from the command line.
obfc is available under the GNU General Public
License, version 2. See the file COPYING in the distribution
tar file. The README file contains further information about
obfc itself, as well as compilation and usage
instructions.
download area
current version: 0.0.3
obfc-0.0.3.tar.gz
old versions:
obfc-0.0.2.tar.gz
obfc-0.0.1.tar.gz
You can also have a look at my other projects on my
homepage.
Last updated Jan 28 2007 by mala