repos / gbc

GBC - Go B Compiler
git clone https://github.com/xplshn/gbc.git

commit
1484dd7
parent
ee0c8ea
author
xplshn
date
2025-08-24 02:36:07 +0000 UTC
Update README.md
1 files changed,  +5, -7
M README.md
+5, -7
 1@@ -75,16 +75,14 @@ For more details refer to <https://github.com/xplshn/gbc>
 2 
 3 ### Progress Report:
 4 - Capable of passing all tests
 5-- Capable of compiling donut.b
 6-- Capable of compiling snake.b
 7-- Capable of compiling raylib.b (just remember to link with Raylib via `-L -lraylib`)
 8-- Capable of compiling langtons_ants.b
 9-- Capable of compiling brainfck.b
10+- Capable of compiling all examples. Producing the same output as the reference B compiler, against the same STDIN and argument inputs.
11 - Etc, these are just the most impressive examples
12 - I added a completely opt-in type system. It uses type first declarations like C, and uses the Go type names. (can also be used with strict B via `-std=B -Ftyped`, the syntax is backwards compatible. Its so reliable it comes enabled by default.)
13 - `gbc` will warn about poorly written code. TODO: Convert these warnings into annotations that offer suggestions.
14-- I'm working on adding support for alternative backends. QBE will remain as the default, but there should be other options as well, including a C one. (TODO: Expose GOABI0 target that libQBE provides)
15-  - UPDATE: LLVM target will be made available soon. I'm also making progress towards achieving full cross-compilation.
16+- Portable and with multiple backends:
17+  - QBE (default, via modernc.org/libQBE, a pure Go version of QBE)
18+  - LLVM (via `llc`)
19+  - TODO: GameBoy Color Target... Coming soon!!!
20 
21 ## Demo
22 <img width="1920" height="1080" alt="RayLib B demo" src="https://github.com/user-attachments/assets/ed941fc1-0754-4978-98fb-13ff2774b880" />