Emscripten: An LLVM-to-JavaScript Compiler
Перейти к файлу
Alon Zakai dab23338a2
Make ASSERTIONS=2 imply STACK_OVERFLOW_CHECK=2 (#12579)
This is in addition to the existing 1 implying 1.

The goal is to make it easier to use -s ASSERTIONS=2 and have it check
as many things as possible.
2020-10-23 11:34:53 -07:00
.circleci
.github
cmake/Modules
docs [docs] Remove some fastcomp mentions (#12547) 2020-10-20 13:47:01 -07:00
media
site [docs] Remove some fastcomp mentions (#12547) 2020-10-20 13:47:01 -07:00
src Add support for RTLD_DEFAULT in dlsym (#12583) 2020-10-23 08:30:55 -07:00
system sdl2-config: bump version (#12538) 2020-10-19 14:19:29 -07:00
tests Make ASSERTIONS=2 imply STACK_OVERFLOW_CHECK=2 (#12579) 2020-10-23 11:34:53 -07:00
third_party
tools Emit a relative path in -gseparate-dwarf (#12549) 2020-10-22 12:57:18 -07:00
.clang-format
.editorconfig
.flake8 Add entry points for emdump and file_packager scripts (#12570) 2020-10-21 09:45:45 -07:00
.gitattributes
.gitignore
.style.yapf
AUTHORS Re-increment uncaught exception count on rethrow (#12535) 2020-10-22 11:32:26 -07:00
CONTRIBUTING.md
ChangeLog.md Make ASSERTIONS=2 imply STACK_OVERFLOW_CHECK=2 (#12579) 2020-10-23 11:34:53 -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 Make ASSERTIONS=2 imply STACK_OVERFLOW_CHECK=2 (#12579) 2020-10-23 11:34:53 -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 emrun: Don't send response on `^exit^` message (#12523) 2020-10-14 19:11:57 -07:00
emscons
emscons.bat
emscons.py
emscripten-version.txt
emscripten.py Fix mis-reporting of `undefined exported functions` on data symbols (#12573) 2020-10-21 15:49:40 -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.