Is there a way to force the compiler to bundle the...
# kotlin-native
j
Is there a way to force the compiler to bundle the definition to
Kotlin_Int_plus_Int
into the bitcode file?
s
No. But soon arithmetic operations like this one will be inlined into bitcode.
j
Will it be possible to get the definitions of these methods eventually, as many as possible?
Even externally
s
I don’t think so. What problem are you trying to solve?
j
Im trying to statically verify the llvm bitcode, the problem is it can't verfy methods it can't see inside like plus and so on. I don't want to have to shadow implement every runtime method in kotlin. So I need the bitcode
s
You can pass
-Xverbose=object_files
compiler option to see the command (and all of bitcode files) that is used to create an object file.