Английская Википедия:Emscripten
Шаблон:Short description Шаблон:Infobox software Emscripten is an LLVM/Clang-based compiler that compiles C and C++ source code to WebAssembly[1] (or to a subset of JavaScript known as asm.js,[2] 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. It even emulates an entire POSIX operating system, enabling programmers to use functions from the C standard library (libc).[3]
With the more recent development of the WebAssembly System Interface (WASI)[4] and WebAssembly runtimes such as Node.js, Wasmtime,[5] and Wasmer,[6] Emscripten can also be used to compile to WebAssembly for execution in non-Web embeddings as well.
Usage
Emscripten has been used to port a number of C/C++ code bases to WebAssembly, including Unreal Engine 3, SQLite,[7] 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:
Game engines
The Unity, Defold, and Godot game engines provide an export option to HTML5, utilizing Emscripten.[12][13][14] The Unreal Engine had this export option but it has been migrated out of the engine to a community member plug in.[15]
Frameworks & toolkits
openFrameworks exports native C++ applications to HTML5 via Emscripten.[16] emscripten-qt permits compiling applications written using the Qt application framework to WebAssembly.[11]
Software archiving
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.[17][18][19]
See also
- asm.js
- Google Native Client (PNaCl)
- WebAssembly
References
External links
- Шаблон:Official website
- Project page on GitHub
- Emscripten Documentation
- Porting Examples and Demos
- A list of some WebAssembly runtimes
- ↑ WebAssembly · emscripten-core/emscripten Wiki · GitHub
- ↑ Шаблон:Cite web
- ↑ Шаблон:Cite web
- ↑ Шаблон:Cite web
- ↑ Шаблон:Cite web
- ↑ Шаблон:Cite web
- ↑ Шаблон:Cite web
- ↑ http://www.meshlabjs.net - Homepage of the experimental, client based, javascript, version of MeshLab that runs inside a browser
- ↑ Шаблон:Cite web
- ↑ Шаблон:Cite web.
- ↑ 11,0 11,1 Шаблон:Cite web
- ↑ Шаблон:Cite web
- ↑ Шаблон:Cite web
- ↑ Шаблон:Cite web
- ↑ Шаблон:Cite web
- ↑ Шаблон:Cite web
- ↑ Шаблон:Cite news
- ↑ Each New Boot a Miracle by Jason Scott (December 23, 2014)
- ↑ Шаблон:Cite web