PBXB64 - Compiler Werkstatt
Alpha Vorschau — Multi-Frontend Nativer Compiler

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.

Alpha — Download kommt bald
Bald erhaeltlich Help-File Download (CHM) Alpha Preview

Release: ~390 KB (exe + WinAPI includes)

5 language frontends

72 smoke tests passing

8Stage pipeline: Lex → Parse → IR → Opt → CodeGen → Asm → COFF → PE
5Language frontends: B64, BASIC, C, ASM, PILOT
C17Core compiler written in portable standard C17
72/72Smoke tests passing across all frontends

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

LanguageExtensionsStatusDescription
B64.b64ActiveC-like systems language with manual memory, pointers, structs. Primary frontend.
BASIC.pb, .bas, .pbaGrowingPowerBASIC-compatible dialect. String lifetime management and PRINT semantics.
C Subset.cGrowingControlled C17 subset: switch/case, unions, function pointers, multi-increment for.
Assembly.asm, .sActiveNative x64 assembler with direct COFF/PE output.
PILOT.pilActiveEducational language. Full T/A/M/Y/N/C/J/U/E commands.

Quick Examples

B64

fn main(): i32 { let x: i32 = 42; return x; }

BASIC

FUNCTION PBMAIN() AS LONG PRINT "Hello from PBXB64!" FUNCTION = 0 END FUNCTION

C

int add(int a, int b) { return a + b; }

V11 Improvements

AreaChange
Preprocessor Hardening_Pragma, #pragma, #line, __FILE__, __LINE__; extended #if evaluator (+ - * / % << >> & ^ |)
Function PointersSimple direct calls via local function pointer initialization
Runtime Aliasesmalloc, free, strlen mapped to native/KERNEL32 implementations
C17 HeadersStrengthened prototypes for string.h, stdlib.h, stdio.h
Struct/Union ShellsParsing and layout coverage for bitfields and aggregates

Architecture — From Source to Silicon

Source (.b64/.pb/.c/.asm/.pil) |-> Lexer (per-language tokenizer) |-> Parser (per-language AST) |-> IR Builder (unified intermediate representation) |-> Optimizer (pass manager, CFG, dominance) |-> x64 CodeGen (register allocation, instruction selection) |-> Assembler (x64 encoding, fixups) |-> COFF Writer (object file emission) |-> PE Linker (import table, relocations, PE32+ image)

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.