https://kotlinlang.org logo
Title
s

Sergey Rubanov

11/20/2017, 6:11 PM
How big is kotlin-native wasm runtime? IIUC reference count should be in runtime, right?
o

olonho

11/21/2017, 9:24 AM
runtime is moderately sized, and we try to compile in only needed parts, so for example for simple
jetbrains@unit-922:~/kotlin/kotlin-native
>cat hello.kt
fun main(args: Array<String>) {
  println("Hello ${args[0]}")
}
jetbrains@unit-922:~/kotlin/kotlin-native
>./dist/bin/konanc -opt hello.kt -o hello
KtFile: hello.kt
jetbrains@unit-922:~/kotlin/kotlin-native
>./hello.kexe world
Hello world
jetbrains@unit-922:~/kotlin/kotlin-native
>ls -lh hello.kexe 
-rwxr-xr-x  1 jetbrains  staff   151K Nov 21 12:24 hello.kexe
s

Sergey Rubanov

11/24/2017, 7:26 PM
Great! Thank you!