em-config
LLVM-to-JavaScript Compiler
Install
- All systems
-
curl cmd.cat/em-config.sh
- Debian
-
apt-get install emscripten
- Ubuntu
-
apt-get install emscripten
- Arch Linux
-
pacman -S emscripten
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install emscripten
- OS X
-
brew install emscripten
- Raspbian
-
apt-get install emscripten
- Dockerfile
- dockerfile.run/em-config
emscripten
LLVM-to-JavaScript Compiler
Emscripten is an LLVM to JavaScript compiler. It takes LLVM bitcode, also called LLVM IR (which can be generated from C/C++ using Clang, or any other language that can be converted into LLVM bitcode) and compiles that into JavaScript, which can be run on the web (or anywhere else JavaScript can run). Using Emscripten, you can * Compile C and C++ code into JavaScript and run that on the web * Run code in languages like Python as well, by compiling CPython from C to JavaScript and interpreting code in that on the web