Original author(s) | Alon Zakai |
---|---|
Stable release | 2.0.13
/ 29 January 2021[1] |
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] (or to a subset of JavaScript known as asm.js,[4] its original compilation target before the advent of WebAssembly in 2017), 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. 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.
Emscripten has been used to port a number of C/C++ code bases to WebAssembly, including Unreal Engine 3, SQLite, MeshLab,[8]Bullet physics.[9]AutoCAD,[10] and a subset of the Qt application framework.[11] Other examples of software ported to WebAssembly via Emscripten include the following:
The Unity, Godot, and Unreal game engines provide an export option to HTML5, utilizing Emscripten.[12][13][14]
openFrameworks exports native C++ applications to HTML5 via Emscripten.[15] emscripten-qt permits compiling applications written using the Qt application framework to WebAssembly.[11]
In December 2014, the Internet Archive launched a DOSBox emulator compiled in Emscripten to provide browser-based access to thousands of archived MS-DOS and PC programs.[16][17][18]
C: 40.0%; C++: 34.4%; JavaScript: 17.4%.
By: Wikipedia.org
Edited: 2021-06-18 12:36:28
Source: Wikipedia.org