Emscripten
Emscripten is an LLVM-based compiler that compiles C and C++ source code to either WebAssembly[3] or a subset of JavaScript known as asm.js,[4] primarily for execution in web browsers.
Original author(s) | Alon Zakai |
---|---|
Stable release | 2.0.12
/ 11 January 2021[1] |
Repository | |
Written in | C, C++, JavaScript[2] |
Type | Compiler |
License | MIT License |
Website | emscripten |
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.
Usage
Emscripten has been used to port Unreal Engine 3, SQLite, MeshLab,[5] Bullet physics,[6] AutoCAD,[7] a subset of the Qt application framework,[8] and more.
Game engines
The Unity, Godot and Unreal game engines provide an export option to HTML5, utilizing Emscripten.[9][10][11]
Frameworks & toolkits
openFrameworks exports native C++ applications to HTML5 via Emscripten.[12] emscripten-qt allows you to compile applications written for the Qt application framework into JavaScript.[8]
See also
- asm.js
- Google Native Client (PNaCl)
- Haxe
- WebAssembly
References
- "Releases". emscripten-core/emscripten. GitHub. Retrieved 2021-01-21.
- "emscripten-core/emscripten: Emscripten: An LLVM-to-JavaScript Compiler".
C: 40.0%; C++: 34.4%; JavaScript: 17.4%.
- https://github.com/kripken/emscripten/wiki/WebAssembly
- Walton, Zach (2012-04-04). "Easily Port C++ To HTML5/JavaScript With Emscripten". WebProNews. iEntry Network. Archived from the original on 2013-07-30. Retrieved 2012-04-25.
- http://www.meshlabjs.net - Homepage of the experimental, client based, javascript, version of MeshLab that runs inside a browser
- "Porting Examples and Demos". Emscripten GitHub wiki. Retrieved 2016-03-01.
- "The Future of AutoCAD". Through the Interface. Retrieved 2018-05-09.
- "Qt for WebAssembly".
- "Unity game engine heading to the browser without plug-ins". Ars Technica. Retrieved 2016-03-01.
- "The future of scripting in Unity – Unity Blog". Unity Technologies Blog. Retrieved 2016-03-01.
- "Tappy Chicken". www.unrealengine.com. Retrieved 2016-03-01.
- "openFrameworks setup for Emscripten". openFrameworks. Retrieved 2016-03-04.
- Ohlheiser, Abby (2015-01-05). "You can now play nearly 2,400 MS-DOS video games in your browser". Washington Post. Retrieved 2015-01-08.
- Each New Boot a Miracle by Jason Scott (December 23, 2014)
- "Internet Archive Search: "collection:softwarelibrary_msdos"". archive.org. Retrieved 2016-03-01.