Version: 0.9.0-native (C17 Hardening)
Target: Windows x64 PE32+ executables
Tests: 72/72 smoke tests passing
License: Free for private use
Copyright: © 2026 Theo Gottwald / www.smart-package.com
Target: Windows x64 PE32+ executables
Tests: 72/72 smoke tests passing
License: Free for private use
Copyright: © 2026 Theo Gottwald / www.smart-package.com
Language Frontends
| Language | Extensions | Status | Description |
|---|---|---|---|
| B64 | .b64 | Active | C-like systems language. Primary frontend with full IR integration. |
| BASIC | .pb, .bas, .pba | Growing | PowerBASIC-compatible dialect. V8 supports PRINT, STRING, control flow, WinAPI calls. |
| C Subset | .c | Growing | Controlled C17 subset. V9 adds full preprocessor hardening, function pointers, runtime aliases. |
| Assembly | .asm, .s | Active | Native x64 assembler with Intel syntax. Direct COFF/PE output. |
| PILOT | .pil | Active | Educational language (Atari-style). T:, A:, M:, Y:, N:, C:, J:, U:, E:, R:, S:, D: commands. |
Compiler Pipeline
Source (.b64/.pb/.c/.asm/.pil) |-> Per-language Lexer + Parser -> AST |-> IR Builder (unified intermediate representation) |-> Middle-end (CFG, dominance, pass manager, optimizer) |-> x64 CodeGen (register allocation, instruction selection) |-> Assembler (x64 encoding, COFF emission) |-> PE Linker (import table, relocations, PE32+ image)
V9 Highlights
- Preprocessor Hardening:
_Pragma,#pragma,#line,__FILE__,__LINE__ - Extended #if Evaluator: Supports
+ - * / % << >> & ^ |operators - Function Pointers: Simple direct calls via local function pointer initialization
- Runtime Aliases:
malloc,free,strlenmapped to native/KERNEL32 implementations - Header Strengthening: Full prototypes for
string.h,stdlib.h,stdio.h - Struct/Union Shells: Parsing and layout coverage for bitfields and aggregates
- Mixed Language Linking: Preserved B64 + C interoperability with V9 runtime
Documentation Sections
- Command-Line Options -- All compiler flags and switches
- B64 Language Reference -- The primary systems language
- BASIC Language Reference -- PowerBASIC-compatible syntax
- C Language Reference -- C17 subset with preprocessor & V9 hardening
- Assembly Reference -- Native x64 assembler
- PILOT Language Reference -- Educational language
- Example Programs -- Sample code for all languages