Alicorn
Native x64-to-C# transpiler for fast runtime execution
The Idea
Alicorn was born from a simple question: what if we could take native x64 binaries and translate them directly into C# code that runs fast? Not interpretation. Not emulation. Real transpilation.
The name comes from the mythical winged unicorn — something rare, powerful, and a bit magical. Because that’s what this project feels like.
How It Works
At its core, Alicorn:
- Parses x64 machine code using the Iced disassembler
- Constructs a control flow graph to understand program structure
- Generates equivalent C# code that preserves the original semantics
- Compiles with .NET 10 for native-like performance
The goal isn’t perfect translation — it’s practical translation. Good enough to run real code, fast enough to be useful.
Current Status
This is very much a work in progress. The basic blocks are in place:
- ✅ x64 instruction decoding
- ✅ Control flow analysis
- 🚧 C# code generation
- ❌ Full calling convention support
- ❌ Standard library mapping
Why I’m Building This
I’ve always been fascinated by the boundary between languages. Compilation, transpilation, interpretation — these are all just different ways of saying “translate this into something the machine understands.”
Alicorn is my way of exploring that boundary. It’s ambitious, probably too ambitious. But that’s the point.