PBXB64 B64 Language

B64 Systems Language PBXB64 Addition

A C-like systems language with types, functions, structs, arrays, pointers, inline assembly, and direct x64 compilation. Write low-level code with high-level type safety. B64 files are compiled directly through the PBXB64 compiler to native x64 executables.

B64 Syntax Overview

B64 - C-like systems language
// B64 file: hello.b64 func main() i64 { var msg string = "Hello B64" print(msg) return 0 }

B64 uses C-like syntax: func, var, return, typed parameters, and block scopes. Compiles directly to x64 without external dependencies.

Types, Structs, and Arrays

B64 types and structs
// B64 struct and array example struct Point { x i64 y i64 } func distance(p Point) i64 { return p.x * p.x + p.y * p.y } func main() i64 { var p Point p.x = 3 p.y = 4 var arr[10] i64 arr[0] = 1 arr[1] = 2 return distance(p) ' 25 }

B64 supports structs with field access, fixed arrays, and pointer types. Struct field offsets are computed correctly (including nested structs). Array bounds are checked at runtime.

Inline Assembly

B64 inline assembly
func main() i64 { asm { mov rax, 42 } return 0 }

B64 supports inline assembly blocks with the asm keyword. Assembly is passed directly to the integrated assembler and embedded into the generated code.

Compiling B64

CLI - compile B64 to x64
REM Compile B64 to executable PBXB64 hello.b64 -o hello.exe hello.exe REM B64 with multiple files PBXB64 main.b64 lib.b64 -o program.exe REM Assembly output PBXB64 hello.b64 -S -o hello.asm

B64 files are compiled with the same PBXB64 command. The compiler auto-detects .b64 extension and routes through the B64 frontend. All standard flags (-o, -S, -g) work.

Back to feature list