Native x64 Compilation
Generate 64-bit Windows executables and DLLs. Break the 2GB memory barrier. Direct x64 COM interop via MSVC ABI.
Modern compiler that takes your VB6 code to the x64 era — with Unicode, multi-threading, and zero-modification compilation built in.
x64 · Unicode · Multi-threaded · Zero modification
VB6's original compiler c2.exe targets x86 only. c3.exe brings
three fundamental upgrades.
| Capability | c2.exe (VB6) | c3.exe (vb6c3) |
|---|---|---|
| Architecture | x86 (32-bit) | x64 (64-bit) NEW |
| String Encoding | ANSI / BSTR | Unicode (UTF-16) NEW |
| Threading | Single / STA | Multi-threaded NEW |
| Runtime | MSVBVM60.dll | Static-linked (no DLL) |
| Debug Info | PDB | PDB (MSVC native) |
| C Code Output | No | Yes (debuggable) |
No source code modification required. Your VB6 projects compile as-is.
Generate 64-bit Windows executables and DLLs. Break the 2GB memory barrier. Direct x64 COM interop via MSVC ABI.
BSTR strings are UTF-16 throughout. Source files support UTF-8/GBK/UTF-16 encoding with automatic detection.
No more single-threaded apartment model. Free-threaded COM, CreateThread, and true parallel execution.
Compile VBA code alongside VB6 projects. Supported as a first-class compilation target.
No runtime DLL dependency. All 200+ VB6 runtime functions are compiled directly into your executable. Clean deployment.
Unsupported syntax always reports an error. Never silently miscompiles. Miscompilation is worse than no compilation.
C code generation + MSVC gives you readable, debuggable output with zero external dependencies.
Milestone-driven development. Every phase must pass verification before advancing.
CMake build, diagnostics, source manager (GBK/UTF-8/UTF-16), LL(2) lexer, compiler driver
CompletedRecursive descent + Pratt (14 levels), 80+ AST nodes, soft keywords, ~2900 lines parser code
CompletedSymbol table, type system, Variant inference, default property resolution, type checking
Next UpVB6→C type mapping, expression/stmt/proc codegen, cl.exe + link.exe driver
PlannedBSTR, Variant, SAFEARRAY, 200+ runtime functions, all statically linked
PlannedCompile VBA code from Office documents as first-class target
PlannedClean, composable command-line interface designed for CI/CD pipelines and build automation.
--dump-tokens Inspect lexer output--dump-ast Visualize parse tree--syntax-only Fast syntax validation--target win-x64 Cross-target support-O2 -g Optimize + debug info$ c3 hello.bas --dump-ast Module: hello.bas Sub Main (access=Public) LocalDecl → Dim name As String Assign: name = "World" If → Else → End If For i = 1 To 10 → Next i ✓ 0 errors, 0 warnings $ c3 hello.bas -o hello.exe -O2 ✓ Compiled: hello.exe (x64)
c3 is under active development. Follow progress or try the latest build.