Warning
The Compiler is not fully implemented yet. Plus on its own it's probably not useful for any serious Software Development. It is fun for Recreational Programming though.
Logo by Strawberry 🍓
Compiler for the B Programming Language implemented in Crust.
- Rust - the compiler is written in it;
- GCC or Clang (whatever surves as the
cc
on your POSIX platform) - thex86_64
andaarch64
targets generate assembly and pass it tocc
to assemble and link.
$ make
$ ./build/b -run ./examples/hello_world.b
Also check out more examples at ./examples/. Find the project documentation at ./docs/.
Accepting Pull Requests is currently paused. We are in the middle of Decentralizing this repo. The plan is
- Create a separate organization for the language.
- Keep
*x86_64*
and*aarch64*
codegens in the main repo. - Move codegens 6502 (owner @Miezekatze64), uxn (owner @deniska), gas-sh4dsp-prizm (owner @seija-amanojaku) to separate repos within the organization and give the owners full admin access to them.
You can still submit PRs in the meantime. Just don't expect them to be reviewed any time soon since decouping codegens requires extensive refactoring. They will be addressed eventually.