Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benjojo/c2bf
C2BF is a C compiler targeting brainfuck, written by the twisted mind of Gregor Richards.
https://github.com/benjojo/c2bf
Last synced: 3 months ago
JSON representation
C2BF is a C compiler targeting brainfuck, written by the twisted mind of Gregor Richards.
- Host: GitHub
- URL: https://github.com/benjojo/c2bf
- Owner: benjojo
- Created: 2014-03-28T10:24:07.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T08:19:40.000Z (almost 2 years ago)
- Last Synced: 2024-04-17T21:11:54.422Z (10 months ago)
- Language: C
- Homepage:
- Size: 181 KB
- Stars: 32
- Watchers: 5
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
- AwesomeCompiler - c2bf
README
C2BF is a C compiler targeting brainfuck, written by the twisted mind of Gregor
Richards.Like most compilers, C2BF involves a multi-step procedure. Basically, input .c
files are turned into .o files using c2bf-cc. Then, those .o files are linked
using c2bf-ld. The output binary can be stripped, and the bitwidth can be
modified, by c2bf-strip and c2bf-1to*bit, respectively.Not all of C is supported yet, but I'm working on it. And you could be too!
Next time c2bf-cc tells you that there's an undefined generation, define it in
cc/genbf/.c :)But overall, enjoy. This is a ridiculous project with no real purpose, so just
have some fun with it. Maybe take the abstract syntax tree generation and port
the genration to a different esolang. Maybe change the algorithms to be more
efficient. Or maybe write the most incredible BF program ever written.OK, not that last one. That's totally cheating. And we'll be able to tell :)