PBXB64 ALPHA
V11 — C17 Haertung Edition
A native x86-64 multi-language compiler built in standard C17. Five frontends — B64, BASIC, C, ASM, PILOT — all compile through a unified IR and x64 backend to native PE executables. No LLVM. No GCC. Just pure native machine code from five different languages through one pipeline.
Release: ~390 KB (exe + WinAPI includes)
5 language frontends
72 smoke tests passing
Why PBXB64 Changes Everything
Unified IR Pipeline
Five languages converge on a single intermediate representation. One optimizer. One register allocator. One x64 backend. One PE linker. Add a new language and instantly inherit the entire native backend.
B64 Systems Language
A C-like systems language with manual memory management, raw pointers, structs, and function pointers. B64 is the primary frontend — compile systems-level code with the same pipeline that handles BASIC and PILOT.
C17 Hardened Preprocessor
Full _Pragma, #pragma, #line, __FILE__, __LINE__ support. Extended #if evaluator with arithmetic and bitwise operators. Robust macro expansion before lexing.
Native x64 Backend
Direct x64 instruction selection, register allocation, and PE32+ image generation. No external dependencies. The entire toolchain is self-contained in a single ~390 KB executable.
Language Frontends
| Language | Extensions | Status | Description |
|---|---|---|---|
| B64 | .b64 | Active | C-like systems language with manual memory, pointers, structs. Primary frontend. |
| BASIC | .pb, .bas, .pba | Growing | PowerBASIC-compatible dialect. String lifetime management and PRINT semantics. |
| C Subset | .c | Growing | Controlled C17 subset: switch/case, unions, function pointers, multi-increment for. |
| Assembly | .asm, .s | Active | Native x64 assembler with direct COFF/PE output. |
| PILOT | .pil | Active | Educational language. Full T/A/M/Y/N/C/J/U/E commands. |
Quick Examples
B64
BASIC
C
V11 Improvements
| Area | Change |
|---|---|
| Preprocessor Hardening | _Pragma, #pragma, #line, __FILE__, __LINE__; extended #if evaluator (+ - * / % << >> & ^ |) |
| Function Pointers | Simple direct calls via local function pointer initialization |
| Runtime Aliases | malloc, free, strlen mapped to native/KERNEL32 implementations |
| C17 Headers | Strengthened prototypes for string.h, stdlib.h, stdio.h |
| Struct/Union Shells | Parsing and layout coverage for bitfields and aggregates |
Architecture — From Source to Silicon
Alpha Preview
PBXB64 is in active alpha development. The complete compiler, documentation, and multi-language test suite will be available for download with the first public alpha release.