Kyogre
Every C dialect and Primal C, compiled side by side in a single native toolchain.
- K&R
- C89 – C2y
- GNU C
- Primal C
Front End
Lexes, preprocesses, parses, and type-checks every C dialect from K&R to C2y alongside Primal C. Large files lex in parallel newline chunks, a segmented AST retains exact token spans for lossless round-trips, and semantic analysis emits typed .ci module interfaces.
- 12 C Dialects
- Parallel Chunk Lexer
- Typed .ci Interfaces
IR
A poison-free SSA intermediate representation stored in struct-of-arrays columns addressed by 32-bit entity IDs. Passes run as parallel per-function systems driven by change ticks and column invalidation, while a built-in interpreter powers verification and compile-time const evaluation.
- ECS Columnar SSA
- Change Ticks
- Built-In Interpreter
Backend
Turns verified IR directly into native machine code from declarative ISA descriptions compiled into the binary. A single-pass fast tier keeps debug builds immediate, an optimizing tier shares legalization and encoders, and pluggable ABI classifiers keep exact binary compatibility with outside C.
- Fast + Opt Tiers
- Declarative ISAs
- ABI Plugins
Assembler
Owns the shared machine-code layer — sections, fragments, fixups, and optimistic branch relaxation — built on the same generated encoders the backend uses. Handles hand-written assembly and inline asm in both Kyogre's uniform native syntax and GNU AT&T or Intel dialects.
- Shared Machine Layer
- Native + GNU Syntax
- Byte-Exact Round Trip
Disassembler
Decodes machine bytes back into instructions from decoders inverted directly out of the target descriptions. Runs with zero heap allocation into fixed 32-byte records, separating decoding, operand-facts analysis, and formatting for ky show asm and live debugging.
- Zero-Alloc Decode
- 32-Byte Records
- Intel / AMD Profiles
Linker
Links whole-program builds directly from in-memory backend code buffers and integer symbol atoms — no temporary object files written or parsed. Memory-maps outside objects, archives, and shared libraries in parallel for deterministic, content-hashed builds and incremental debug relinks.
- In-Process Linking
- Content-Hashed Builds
- ky link & ky ld
Debugger
Controls running processes directly through each OS's documented interface — ptrace on Linux, Mach ports on macOS, and the Windows Debug API. Indexes debug info lazily by build ID, evaluates live C and Primal C expressions with the compiler's own front end and IR interpreter, and speaks DAP.
- Native OS Control
- IR Expression Eval
- DAP Server