How matslina/awib works
Awib is a brainfuck-written optimizing cross-compiler. Users provide brainfuck source, optionally select a target, and receive generated code or an i386 Linux executable. The README documents optimization and all supported backends; source excerpts are limited to standalone utilities, so internal compiler calls and backend dispatch wiring cannot be verified. Those documented relationships are shown with README evidence. The utilities include a brainfuck preprocessor with optional polyglot interpreter attachment and a separate brainfuck interpreter.
Main entry points: frontend.b Optimizations · lang_generic/backend.b Generic backend · 386_linux/backend.b i386 Linux · lang_c/backend.b C backend
Components 15
Compiler Core
- Source processing
frontend/frontend.b - Optimizations
frontend/frontend.b
Output Backends
- i386 Linux
386_linux/backend.b - C backend
lang_c/backend.b - Java backend
lang_java/backend.b - Generic backend
lang_generic/backend.b - Go output
lang_generic/go.b - Ruby output
lang_generic/ruby.b - Rust output
lang_generic/rust.b - Tcl output
lang_generic/tcl.b
Brainfuck Utilities
- BF preprocessor
util/bfpp.py - BF interpreter
util/bfint.c
Other components
- Compiler user
- Brainfuck source
- Generated program
Connections 19
- Compiler user → Brainfuck source: provides
README.md - Brainfuck source → Source processing: compiles
README.md - Source processing → Optimizations: optimizes
README.md - Optimizations → i386 Linux: targets
README.md - Optimizations → C backend: targets
README.md - Optimizations → Java backend: targets
README.md - Optimizations → Generic backend: targets
README.md - Generic backend → Go output: emits
- Generic backend → Ruby output: emits
- Generic backend → Rust output: emits
- Generic backend → Tcl output: emits
- i386 Linux → Generated program: generates
README.md - C backend → Generated program: generates
README.md - Java backend → Generated program: generates
README.md - Go output → Generated program: generates
README.md - Ruby output → Generated program: generates
README.md - Rust output → Generated program: generates
README.md - Tcl output → Generated program: generates
README.md - BF preprocessor → BF interpreter: attaches option
util/bfpp.py