2025-06-18 08:27:00
github.com
Warning
Compiler is not fully implemented yet.
Logo by Strawberry π
Compiler for the B Programming Language implemented in Crust
$ make
$ ./build/b -run ./examples/hello_world.b
Also check out more examples at ./examples/.
The project comes with btest utility which tests the B compiler. It is built automatically along with the B compiler when you do make
.
When you run it, it just builds and runs all the tests from the ./tests/ folder on all the supported targets and generates a matrix report. Give it a try to see it for yourself:
It doesn’t crash when it encounters errors, it just collects the statuses of the tests on all the platforms to give an overview of the current state of the compiler.
If you want to test only on a specific platform you can supply the flag -t
$ ./build/btest -t fasm-x86_64-linux
You can supply several platforms
$ ./build/btest -t fasm-x86_64-linux -t uxn
If you want to run a specific test case you can supply flag -c
You can do several tests
$ ./build/btest -c upper -c vector
And of course you can combine both -c
and -t
flags to slice the Test Matrix however you want
$ ./build/btest -c upper -c vector -t fasm-x86_64-linux -t uxn
Keep your files stored safely and securely with the SanDisk 2TB Extreme Portable SSD. With over 69,505 ratings and an impressive 4.6 out of 5 stars, this product has been purchased over 8K+ times in the past month. At only $129.99, this Amazon’s Choice product is a must-have for secure file storage.
Help keep private content private with the included password protection featuring 256-bit AES hardware encryption. Order now for just $129.99 on Amazon!
Help Power Techcraticβs Future – Scan To Support
If Techcraticβs content and insights have helped you, consider giving back by supporting the platform with crypto. Every contribution makes a difference, whether itβs for high-quality content, server maintenance, or future updates. Techcratic is constantly evolving, and your support helps drive that progress.
As a solo operator who wears all the hats, creating content, managing the tech, and running the site, your support allows me to stay focused on delivering valuable resources. Your support keeps everything running smoothly and enables me to continue creating the content you love. Iβm deeply grateful for your support, it truly means the world to me! Thank you!
BITCOIN bc1qlszw7elx2qahjwvaryh0tkgg8y68enw30gpvge Scan the QR code with your crypto wallet app |
DOGECOIN D64GwvvYQxFXYyan3oQCrmWfidf6T3JpBA Scan the QR code with your crypto wallet app |
ETHEREUM 0xe9BC980DF3d985730dA827996B43E4A62CCBAA7a Scan the QR code with your crypto wallet app |
Please read the Privacy and Security Disclaimer on how Techcratic handles your support.
Disclaimer: As an Amazon Associate, Techcratic may earn from qualifying purchases.