Emscripten: An LLVM-to-JavaScript Compiler
Перейти к файлу
Sam Clegg bd9b27193a
Remove duplicate threadExit code in worke.js (#12931)
2020-12-01 15:47:13 -08:00
.circleci Fix other.test_system_include_paths on windows (#12877) 2020-11-24 13:16:08 -08:00
.github Remove use of set-env in github actions (#12438) 2020-10-06 12:06:56 -07:00
cmake/Modules Output executables by default. (#11799) 2020-09-14 18:16:26 -07:00
docs Add Gentoo package information to packaging.md (#12859) 2020-11-22 13:12:50 -08:00
media Improve the main emscripten landing pages (#12091) 2020-09-15 09:50:47 -07:00
site Fix docs on newer versions of sphinx. Fixes #12918 (#12927) 2020-11-30 16:31:28 -08:00
src Remove duplicate threadExit code in worke.js (#12931) 2020-12-01 15:47:13 -08:00
system Remove pid field from internal pthread struct (#12916) 2020-11-30 12:58:07 -08:00
tests Remove excess headers from report_result.h (#12929) 2020-12-01 10:38:16 -08:00
third_party Support import(...) in ESTree->Terser conversion (#12365) 2020-09-29 11:15:30 -07:00
tools Improve gen_struct_info.py. NFC (#12914) 2020-12-01 15:22:49 -08:00
.clang-format Add .clang-format file (copied from binaryen) (#7164) 2018-09-21 11:12:41 -07:00
.editorconfig Add .editorconfig (#8359) 2019-03-28 09:52:16 -07:00
.flake8 Make tools/create_dom_pk_codes.py idempotent (#12683) 2020-11-02 15:31:25 -08:00
.gitattributes Fix typo in .gitattributes (#11060) 2020-05-01 16:18:49 -07:00
.gitignore Store cache lock inside cache directory (#11614) 2020-07-10 14:55:14 -07:00
.style.yapf Add .style.yapf for the YAPF python formatter (#6782) 2018-06-29 17:25:55 -07:00
AUTHORS Document embind linking issues (#12882) 2020-11-30 12:38:02 -08:00
CONTRIBUTING.md Link to emscripten.org for contributing info. (#10612) 2020-03-02 13:43:34 -08:00
ChangeLog.md Run clang with `--sysroot`. NFC (#12863) 2020-11-23 21:08:51 -08:00
LICENSE mention third_party in LICENSE 2016-04-13 11:06:10 -07:00
Makefile Use DESTDIR instead of uncommon DISTDIR (#11355) 2020-06-05 11:45:12 -07:00
README.md Improve the main emscripten landing pages (#12091) 2020-09-15 09:50:47 -07:00
em++ Require python3 (#11836) 2020-08-07 09:41:49 -07:00
em++.bat Fix Windows .bat files to not leak echo state and environment variables to calling bat files/environment. (#12784) 2020-11-15 21:43:04 +02:00
em++.py Add option to not default for C++ (which matches clang/gcc behaviour) (#10879) 2020-04-10 19:49:48 -07:00
em-config Require python3 (#11836) 2020-08-07 09:41:49 -07:00
em-config.bat Fix Windows .bat files to not leak echo state and environment variables to calling bat files/environment. (#12784) 2020-11-15 21:43:04 +02:00
em-config.py Split config file handling out of shared.py. NFC. (#12699) 2020-11-09 08:06:33 -08:00
emar Require python3 (#11836) 2020-08-07 09:41:49 -07:00
emar.bat Fix Windows .bat files to not leak echo state and environment variables to calling bat files/environment. (#12784) 2020-11-15 21:43:04 +02:00
emar.py Remove python2 support. NFC. (#12610) 2020-10-28 15:32:49 -07:00
embuilder Require python3 (#11836) 2020-08-07 09:41:49 -07:00
embuilder.bat Fix Windows .bat files to not leak echo state and environment variables to calling bat files/environment. (#12784) 2020-11-15 21:43:04 +02:00
embuilder.py Merge pthreads library into libc (#12880) 2020-11-25 18:57:34 -08:00
emcc Require python3 (#11836) 2020-08-07 09:41:49 -07:00
emcc.bat Fix Windows .bat files to not leak echo state and environment variables to calling bat files/environment. (#12784) 2020-11-15 21:43:04 +02:00
emcc.py Make ASYNCIFY_LAZY_LOAD_CODE automatically enable ASYNCIFY. (#12925) 2020-11-30 13:23:54 -08:00
emcmake Require python3 (#11836) 2020-08-07 09:41:49 -07:00
emcmake.bat Fix Windows .bat files to not leak echo state and environment variables to calling bat files/environment. (#12784) 2020-11-15 21:43:04 +02:00
emcmake.py Remove python2 support. NFC. (#12610) 2020-10-28 15:32:49 -07:00
emconfigure Require python3 (#11836) 2020-08-07 09:41:49 -07:00
emconfigure.bat Fix Windows .bat files to not leak echo state and environment variables to calling bat files/environment. (#12784) 2020-11-15 21:43:04 +02:00
emconfigure.py Remove python2 support. NFC. (#12610) 2020-10-28 15:32:49 -07:00
emmake Require python3 (#11836) 2020-08-07 09:41:49 -07:00
emmake.bat Fix Windows .bat files to not leak echo state and environment variables to calling bat files/environment. (#12784) 2020-11-15 21:43:04 +02:00
emmake.py Remove python2 support. NFC. (#12610) 2020-10-28 15:32:49 -07:00
emranlib Require python3 (#11836) 2020-08-07 09:41:49 -07:00
emranlib.bat Fix Windows .bat files to not leak echo state and environment variables to calling bat files/environment. (#12784) 2020-11-15 21:43:04 +02:00
emranlib.py Remove python2 support. NFC. (#12610) 2020-10-28 15:32:49 -07:00
emrun Require python3 (#11836) 2020-08-07 09:41:49 -07:00
emrun.bat Fix Windows .bat files to not leak echo state and environment variables to calling bat files/environment. (#12784) 2020-11-15 21:43:04 +02:00
emrun.py Split emrun tests out of `browser` (#12594) 2020-10-28 21:06:38 -07:00
emscons Require python3 (#11836) 2020-08-07 09:41:49 -07:00
emscons.bat Fix Windows .bat files to not leak echo state and environment variables to calling bat files/environment. (#12784) 2020-11-15 21:43:04 +02:00
emscons.py Switch the #! lines in all .py files to python3 (#10357) 2020-02-05 15:27:36 -08:00
emscripten-version.txt 2.0.9 2020-11-16 14:58:55 -08:00
emscripten.py Remove minification from struct_info.json (#12881) 2020-11-25 10:19:12 -08:00
emsize Require python3 (#11836) 2020-08-07 09:41:49 -07:00
emsize.bat Fix Windows .bat files to not leak echo state and environment variables to calling bat files/environment. (#12784) 2020-11-15 21:43:04 +02:00
emsize.py Remove python2 support. NFC. (#12610) 2020-10-28 15:32:49 -07:00
package-lock.json Update google-closure-compiler (#12345) 2020-09-28 11:23:40 -07:00
package.json Update google-closure-compiler (#12345) 2020-09-28 11:23:40 -07:00
requirements-dev.txt Put python requirements in requirements-dev.txt (#12254) 2020-09-19 18:26:09 -07:00

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.