Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import org.graalvm.polyglot.*;
- class Polyglot {
- public static void main(String[] args) throws IOException {
- Context polyglot = Context.newBuilder().
- allowAllAccess(true).build();
- File file = new File("polyglot.bc");
- Source source = Source.newBuilder("llvm", file).build();
- Value cpart = polyglot.eval(source);
- cpart.getMember("main").execute();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement