Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ibara/bf256

Brainfuck compiler under 256 bytes in size.
https://github.com/ibara/bf256

amd64 assembler assembly brainfuck bsd c compiler linux minimal minimalism openbsd unix x86-64

Last synced: 15 days ago
JSON representation

Brainfuck compiler under 256 bytes in size.

Awesome Lists containing this project

README

        

bf256
=====
`bf256` is a Brainfuck compiler under 256 bytes in size.

It probably only works on
[OpenBSD](https://www.openbsd.org/)/amd64
as-is.

Write-up
--------
See the
[blog post](https://briancallahan.net/blog/20210710.html).

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.