Emscripten: An LLVM-to-JavaScript Compiler
Перейти к файлу
Sam Clegg f435aa885a
Revive parts of test_emcc_4. NFC. (#12635)
The WASM=0 parts of this test has been disabled and
certainly parts had bit-rotted.
2020-10-29 19:22:15 -07:00
.circleci
.github
cmake/Modules
docs
media
site
src Fix an off-by-one error when converting UTF16 strings to JavaScript strings (#12631) 2020-10-29 19:05:34 -07:00
system
tests Revive parts of test_emcc_4. NFC. (#12635) 2020-10-29 19:22:15 -07:00
third_party
tools Read static data size from dylink section (#12643) 2020-10-29 15:19:26 -07:00
.clang-format
.editorconfig
.flake8
.gitattributes
.gitignore
.style.yapf
AUTHORS Fix an off-by-one error when converting UTF16 strings to JavaScript strings (#12631) 2020-10-29 19:05:34 -07:00
CONTRIBUTING.md
ChangeLog.md Switch to llvm's PIC ABI for relocatable code (#12461) 2020-10-28 23:08:24 -07:00
LICENSE
Makefile
README.md
em++
em++.bat
em++.py
em-config
em-config.bat
em-config.py
emar
emar.bat
emar.py
embuilder
embuilder.bat
embuilder.py
emcc
emcc.bat
emcc.py Move total time reporting outside of `run`. NFC. (#12642) 2020-10-29 17:29:41 -07:00
emcmake
emcmake.bat
emcmake.py
emconfigure
emconfigure.bat
emconfigure.py
emmake
emmake.bat
emmake.py
emranlib
emranlib.bat
emranlib.py
emrun
emrun.bat
emrun.py
emscons
emscons.bat
emscons.py
emscripten-version.txt
emscripten.py Read static data size from dylink section (#12643) 2020-10-29 15:19:26 -07:00
emsize
emsize.bat
emsize.py
package-lock.json
package.json
requirements-dev.txt

README.md

emscripten logo

Main project page: http://emscripten.org

GitHub CI status: CircleCI

Chromium builder status: emscripten-releases

Overview

Emscripten compiles C and C++ to WebAssembly using LLVM and Binaryen. Emscripten output can run on the Web, in Node.js, and in wasm runtimes.

Emscripten provides Web support for popular portable APIs such as OpenGL and SDL2, allowing complex graphical native applications to be ported, such as the Unity game engine and Google Earth. It can probably port your codebase, too!

While Emscripten mostly focuses on compiling C and C++ using Clang, it can be integrated with other LLVM-using compilers (for example, Rust has Emscripten integration, with the wasm32-unknown-emscripten and asmjs-unknown-emscripten targets).

License

Emscripten is available under 2 licenses, the MIT license and the University of Illinois/NCSA Open Source License.

Both are permissive open source licenses, with little if any practical difference between them.

The reason for offering both is that (1) the MIT license is well-known and suitable for a compiler toolchain, while (2) LLVM's original license, the University of Illinois/NCSA Open Source License, was also offered to allow Emscripten's code to be integrated upstream into LLVM. The second reason became less important after Emscripten switched to the LLVM wasm backend, at which point there isn't any code we expect to move back and forth between the projects; also, LLVM relicensed to Apache 2.0 + exceptions meanwhile. In practice you can just consider Emscripten as MIT licensed (which allows you to do pretty much anything you want with a compiler, including commercial and non-commercial use).

See LICENSE for the full content of the licenses.