Download Latest Version bfc-0.95.tar.gz (16.2 kB)
Email in envelope

Get an email when there's a new version of PBFC - Portable Brainfuck Compiler

Home
Name Modified Size InfoDownloads / Week
README 2014-01-05 1.4 kB
bfc-0.95.tar.gz 2014-01-05 16.2 kB
Totals: 2 Items   17.7 kB 0
pbfc v0.95 release notes:

Hi folks,

This program is a Brainfuck (BF for short) language compiler.
It creates executable files from Brainfuck source code.
See http://en.wikipedia.org/wiki/Brainfuck for more information.
Before you can compile any BF code, you must compile this
pbfc compiler first.
In Linux system, you would just type: "gcc pbfc.c -o pbfc".
Or you can use the Makefile in this directory. Just type "make"
without quotes. Once compiled, you can test the pbfc compiler
with the included BF source code hello.bf and 99bottles.bf.
(Please note that I am not the author of the incuded
BF source code - the *.bf files).
To use the pbfc compiler, just type: "./pbfc hello.bf hello"
and then run the compiled program: "./hello".

This compiler creates executables only for x86 Linux systems
but it should be quite easy task to make a port of pbfc to other
un*x systems too, as long as they support the ELF executable format.

Have fun with the pbfc BF compiler!


  - Niko

If you have any questions about the compiler
or if you want to report a bug, my email adderss
is nkiiskin[at]yahoo[dot]com

TODO:

- Endianess questions. I have only tested pbfc using my 32 -bit x86 Linux!
- I assume pbfc compiles with no or minor modifications in 64 -bit systems
  but how about the programs compiled with pbfc?
- Portability issues:
   - ELF headers and assembly need to be modified to compile BF programs
     to other systems.
Source: README, updated 2014-01-05