Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.26 KB | None | 0 0
  1. import java.io.File
  2. import org.graalvm.polyglot.Source
  3. import org.graalvm.polyglot.Context
  4. val s = Source.newBuilder("llvm", new File("./mandelbrot2.bc")).build
  5. val c = Context.newBuilder().allowNativeAccess(true).build()
  6. val lib = c.eval(s)
  7. lib.getMember("main")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement