What is Kotlin Native?

Kotlin Native is an LLVM backend for the Kotlin compiler that is designed to run on areas without a VM. It uses an LLVM toolchain to generate the runtime implementation and native code.

It is primarily designed to allow compilation for platforms where virtual machines are not desirable or possible (such as iOS and embedded systems), or where we need to produce a self-contained program that does not require additional runtime.

It fully supports interoperability within the native code, that is, C language code. It works similarly to how Kotlin/JVM interoperates with Java language code. For platform libraries, the corresponding interoperating libraries are available out of the box, while for other libraries, there is a tool ...

Get Kotlin Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.