Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/ibara/bf256
- Owner: ibara
- License: isc
- Created: 2021-07-10T05:13:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-13T03:19:18.000Z (about 3 years ago)
- Last Synced: 2024-10-04T13:15:08.871Z (about 1 month ago)
- Topics: amd64, assembler, assembly, brainfuck, bsd, c, compiler, linux, minimal, minimalism, openbsd, unix, x86-64
- Language: Assembly
- Homepage: https://briancallahan.net/blog/20210710.html
- Size: 21.5 KB
- Stars: 25
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.