See this ``` external fun sayHello(): Unit fun ma...
# random
j
See this
Copy code
external fun sayHello(): Unit

fun main(args: Array<String>) {
    val myLib = C {"""
    #include <stdio>
    void say_hello() {
        int src = 1;
        int dst;

        asm ("mov %1, %0\n\t"
             "add $1, %0"
             : "=r" (dst)
             : "r" (src));

        printf("%d\n", dst);
    }
    """}
    myLib.bind("say_hello", ::sayHello)

    sayHello()
}
😱 5