Skip to content

ibara/bf256

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bf256

bf256 is a Brainfuck compiler under 256 bytes in size.

It probably only works on OpenBSD/amd64 as-is.

Write-up

See the blog post.

Building

Just run make.

Running

$ bf256 < input.bf > output.c

Alternatively:

$ bf256 < input.bf | cc -x c -

Size

Compiler alone:

$ size bf256.o
text    data    bss     dec     hex
207     0       0       207     cf

With overhead:

$ size bf256
text    data    bss     dec     hex
231     0       0       231     e7

License

ISC License. See LICENSE for details.