Kotlin/Native Overview: Targets, Toolchain & Compilation
Understand available Kotlin/Native targets and compile a simple CLI binary.
What Is Kotlin/Native?
Kotlin/Native compiles Kotlin source code directly to native machine code via LLVM, without a JVM or Dalvik runtime. The result is a self-contained binary — no JVM installation required on the target machine.
Supported Targets
Kotlin/Native supports a wide range of targets:
- macOS / iOS:
macosX64,macosArm64,iosX64,iosArm64,iosSimulatorArm64 - Linux:
linuxX64,linuxArm64 - Windows:
mingwX64 - Embedded / watchOS / tvOS: various targets
All lessons in this course
- Kotlin/Native Overview: Targets, Toolchain & Compilation
- Memory Management in Kotlin/Native: The New MM
- C Interop with cinterop and .def Files
- Kotlin/WASM: Compiling to WebAssembly for the Browser