louiscad
04/12/2021, 9:32 PMandylamax
04/13/2021, 4:31 AMandylamax
04/13/2021, 4:32 AMGlen
04/13/2021, 9:53 AMGlen
04/13/2021, 10:08 AMGlen
04/13/2021, 10:09 AMlouiscad
04/13/2021, 10:31 AMGlen
04/13/2021, 10:33 AMlouiscad
04/13/2021, 10:35 AMsvyatoslav.scherbina
04/13/2021, 12:56 PMHow doable is making a Kotlin program that generates C++ from Kotlin IR?Well, it might be possible, but I won’t expect this to be easy, fast or pleasant.
louiscad
04/13/2021, 12:58 PMfastYou mean from a development process point of view or regarding the generated code?
svyatoslav.scherbina
04/13/2021, 1:04 PMlouiscad
04/13/2021, 1:04 PMsvyatoslav.scherbina
04/14/2021, 8:16 AMlouiscad
04/14/2021, 11:13 AMlouiscad
04/14/2021, 11:19 AMsvyatoslav.scherbina
04/14/2021, 2:48 PMWhere should I look to get started in reading Kotlin IR (from Kotlin/JVM code)?In Kotlin JVM IR backend source code in this case. For example, this function translates frontend output to IR: https://github.com/JetBrains/kotlin/blob/fb1b253d1efb830c58efd51f203c4a17788f9e75/[…]int/src/org/jetbrains/kotlin/backend/jvm/JvmIrCodegenFactory.kt
Is it just bytes or is there also a kind of AST (Abstract Syntax Tree) or higher-level API I can use to read and output whatever I want from it?There are AST and higher-level APIs as a part of the compiler.
Paul Woitaschek
05/17/2021, 6:15 PMlouiscad
05/17/2021, 6:36 PM