v0.3.155 — Active Development · Open Source

KodPix

A compiled programming language and toolchain written entirely in x86-64 NASM assembly. C-like syntax. Cross-platform targets: Linux, Windows, macOS, iOS, Android. Zero runtime. Deterministic compiler.

Written in Assembly
5 Platforms
License GPL-3.0
visitors
-- Days
-- Hours
-- Minutes
-- Seconds
terminal — hello.kdx
// hello.kdx — Your first KodPix program fn main() -> i32 { println("Hello, KodPix!"); return 0; } // --- Build & run --- ~$ kdx hello.kdx -o hello Compiling hello.kdx ... Assembling hello.s ... Linking hello.o → ELF ... ✓ Build successful → hello ~$ ./hello Hello, KodPix!

Language in Action

C-like syntax designed for clarity. Two entry-point styles supported.

Basic Functions & Types
function int add(int a, int b) { return a + b; } function int main() { int result = add(3, 4); println(result); return 0; }
Modern Arrow Syntax
function add(a: int, b: int) -> int { return a + b; } // Types: int, float, string, // boolean, char, void
Control Conditionals & Loops
int i = 0; while (i < 5) { if (i % 2 == 0) { println("even"); } else { println("odd"); } i++; }
OOP Class Entrypoint
class Main { public void main() { println("Hello from class!"); return; } }

End-to-End Pipeline

From source to native binary — no interpreter, no VM, no runtime.

.kdx
Source Code
.s
NASM Assembly
.o
Object File
BIN
Native Binary
Linux x86-64 ELF
Windows PE/EXE
macOS Mach-O
iOS / Android

Why KodPix?

Assembly-first architecture with C-like ergonomics.

Assembly-First Compiler

The compiler is written entirely in x86-64 NASM assembly. Every instruction in the toolchain is intentionally low-level, fast, and deterministic.

Cross-Platform

Write once, compile everywhere. Native targets for Linux, Windows, macOS, iOS, and Android. No runtime dependencies, no VM needed.

C-Like Syntax

Familiar function declarations, if/else branching, while/for loops, typed variables. Pick it up fast if you already know C, Java, or Go.

Zero Runtime Overhead

No garbage collector. No virtual machine. No hidden allocations. Your code compiles to a native binary that runs directly on bare metal.

Deterministic Output

Same source always produces the same binary. No mysterious optimizations, no hidden code paths. Predictable, auditable, debuggable.

Clear Error Signaling

Structured error codes with precise line/column messages. The compiler tells you exactly what went wrong, where, and how to fix it.

Fully Open Source

Licensed under GPL-3.0. Read the code, fork it, contribute. Every line of the compiler and toolchain is publicly auditable.

Pure Binary Output

No interpreter needed at runtime. The final artifact is a standalone executable — ELF on Linux, PE on Windows, Mach-O on macOS, or AAR/IPA for mobile.

Get Started in 3 Steps

Linux currently supported. Windows, macOS, iOS, Android coming soon.

terminal
# 1. Clone the repository ~$ git clone https://github.com/yugmerabtene/kdx.git ~$ cd kdx # 2. Build the compiler ~/kdx$ ./build.sh ✓ Compiler built → ./kdx # 3. Compile and run your first program ~/kdx$ ./kdx examples/hello.kdx -o hello ✓ Build successful → hello ~/kdx$ ./hello Hello, KodPix! # CLI options ~$ ./kdx file.kdx -S -o file.s # emit assembly only ~$ ./kdx file.kdx -c -o file.o # emit object only ~$ ./kdx file.kdx -x # build & execute