Original author(s) | Alon Zakai |
---|---|
Stable release | 3.1.69[1]
/ 11 October 2024 |
Repository | |
Written in | C, C++, JavaScript[2] |
Type | Compiler |
License | MIT License, University of Illinois/NCSA Open Source License |
Website | emscripten |
Emscripten is an LLVM/Clang-based compiler that compiles C and C++ source code to WebAssembly,[3] primarily for execution in web browsers.
Emscripten allows applications and libraries written in C or C++ to be compiled ahead of time and run efficiently in web browsers, typically at speeds comparable to or faster than interpreted or dynamically compiled JavaScript. It even emulates an entire POSIX operating system, enabling programmers to use functions from the C standard library (libc).[4]
With the more recent development of the WebAssembly System Interface (WASI)[5] and WebAssembly runtimes such as Node.js, Wasmtime,[6] and Wasmer,[7] Emscripten can also be used to compile to WebAssembly for execution in non-Web embeddings as well.
C: 40.0%; C++: 34.4%; JavaScript: 17.4%.