el_tigro
05/01/2018, 5:47 AM[Kotlin/Native] comprises a LLVM-based backend for the Kotlin compiler and a native implementation of the Kotlin runtime library
"backend" in this context does not mean an actual LLVM backend (which consumes IR to produce machine code). Instead it is backend for the Kotlin compiler itself. So (Kotlin compiler + "backend") = LLVM frontend
. is this correct?Aregev2
05/01/2018, 5:53 AMolonho
05/01/2018, 7:52 AMel_tigro
05/01/2018, 4:05 PMopt
and llc
utilities, respectively.
I didn't realize that standard LLVM optimizer and backend libraries can simply be incorporated into the Kotlin compiler.
Is my new understanding correct? Also, does that mean that the bulk of the development work on K/N is spent on the frontend task (compiling Kotlin source to IR)?
Thanks again