Skip to content

Latest commit

 

History

History
46 lines (39 loc) · 662 Bytes

README.md

File metadata and controls

46 lines (39 loc) · 662 Bytes

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.