Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.File
- import org.graalvm.polyglot.Source
- import org.graalvm.polyglot.Context
- val s = Source.newBuilder("llvm", new File("./mandelbrot2.bc")).build
- val c = Context.newBuilder().allowNativeAccess(true).build()
- val lib = c.eval(s)
- lib.getMember("main")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement