[LLVMdev] LLVM IR execution in JavaScript

Alon Zakai azakai at mozilla.com
Wed Jan 2 10:42:54 PST 2013


Hi everyone,

I compiled parts of LLVM to JavaScript using emscripten and made a demo of parsing and executing LLVM assembly,

http://kripken.github.com/llvm.js/demo.html

Basically you enter some LLVM IR, press a button and see the output of compiling and running it, directly in the browser.

This was done mainly as a fun hacking project over the holidays, but I'm posting it here in case anyone thinks it might be useful for something - maybe to teach people LLVM IR in a simple way (no need to install anything, just visit a website). If it is potentially useful it can be optimized and polished etc.

- azakai



More information about the llvm-dev mailing list