Emscripten

From Wikipedia, the free encyclopedia

Template:Short description

Page Module:Infobox/styles.css has no content.

Script error: No such module "If empty".
[[Programmer|Original authorTemplate:Pluralize from text]]Alon Zakai
Initial release22 October 2011; Script error: No such module "Time ago". (2011-10-22)Script error: No such module "Check for unknown parameters".[1]
Template:Infobox software/simple
Written inScript error: No such module "If empty".
EnginePage Template:Plainlist/styles.css has no content.Script error: No such module "Check for unknown parameters".Template:EditAtWikidata
Operating systemScript error: No such module "If empty".
TypeCompiler
LicenseMIT License, University of Illinois/NCSA Open Source License
WebsiteScript error: No such module "WikidataIB".
RepositoryPage Template:Plainlist/styles.css has no content.
Script error: No such module "Check for unknown parameters".

Script error: No such module "Check for unknown parameters".Script error: No such module "Check for conflicting parameters".

Emscripten is an LLVM/Clang-based compiler that compiles LLVM IR to WebAssembly,[2] 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] Unreal Engine had this export option but it has been migrated out of the engine to a community member plug in.[15] The Source Engine, has a community developed port for Emscripten dubbed "HalfLife2JS".[16]

Frameworks & toolkits

openFrameworks exports native C++ applications to HTML5 via Emscripten.[17] 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.[18][19][20]

Creation

Emscripten was created by Alon Zakai in 2010, motivated by his desire to port his fork of the open-source first-person shooter game Sauerbraten, known as Syntensity,[21] to the web. Sauerbraten (also known as Cube 2) is an open-source FPS game,[22] and Syntensity was Zakai's project that extended the Cube 2 Engine for greater flexibility. Observing the increasing shift of applications to web browsers, Zakai began developing Emscripten as an LLVM-to-JavaScript compiler, aiming to make it possible to run existing C and C++ code, such as game engines, directly in the browser. In early blog posts, Zakai explained that his long-term goal was "to run Syntensity, or a smaller version of it, on the web",[23] and Emscripten was released as open source shortly after its initial development, making it available for the broader community to experiment with and contribute to.[24][25]

See also

Lua error in package.lua at line 80: module 'Module:Arguments' not found.

References

Page Template:Reflist/styles.css has no content.

  1. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  2. ^ WebAssembly · emscripten-core/emscripten Wiki · GitHub
  3. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  4. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  5. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  6. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  7. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  8. ^ http://www.meshlabjs.net - Homepage of the experimental, client based, javascript, version of MeshLab that runs inside a browser
  9. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  10. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found..
  11. ^ a b Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  12. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  13. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  14. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  15. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  16. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  17. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  18. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  19. ^ Each New Boot a Miracle by Jason Scott (December 23, 2014)
  20. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  21. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  22. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  23. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  24. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  25. ^ Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.

Script error: No such module "Check for unknown parameters".

Lua error in package.lua at line 80: module 'Module:Navbox/configuration' not found.