Emscripten: An LLVM-to-JavaScript Compiler
Перейти к файлу
Sam Clegg 0c32a9940b
Rebaseline code size tests after llvm change. NFC (#13286)
2021-01-20 06:27:58 -08:00
.circleci Enable asan pthread tests (#13182) 2021-01-07 07:13:31 -08:00
.github Remove use of set-env in github actions (#12438) 2020-10-06 12:06:56 -07:00
cmake/Modules Don't change default CMake compiler / linker flags (#13083) 2021-01-07 02:43:10 -08:00
docs [docs] Add Windows package to the packaging section (#13149) 2021-01-11 14:45:57 -08:00
media Improve the main emscripten landing pages (#12091) 2020-09-15 09:50:47 -07:00
site [docs] Some fixes for packaging docs (#13234) 2021-01-11 15:43:33 -08:00
src Remove redundant zero'ing of pthread fields. NFC. (#13273) 2021-01-19 12:34:55 -08:00
system Remove redundant USE_THREADS macro in system_libs.py. NFC (#13274) 2021-01-19 12:33:40 -08:00
tests Rebaseline code size tests after llvm change. NFC (#13286) 2021-01-20 06:27:58 -08:00
third_party Move mini-lz4.js to third_party. NFC. (#12981) 2020-12-06 12:48:14 -08:00
tools Remove redundant USE_THREADS macro in system_libs.py. NFC (#13274) 2021-01-19 12:33:40 -08:00
.clang-format
.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 Remove old .gitignore entries. NFC (#12936) 2020-12-01 17:11:40 -08:00
.gitmodules Update posixtestsuite submodule (#13013) 2020-12-11 13:24:29 -08:00
.style.yapf
AUTHORS Fix `alcCaptureSamples` (#13178) 2021-01-14 11:33:57 -08:00
CONTRIBUTING.md Link to emscripten.org for contributing info. (#10612) 2020-03-02 13:43:34 -08:00
ChangeLog.md Build a complete sysroot in the cache directory (#13090) 2021-01-10 04:09:02 -08:00
LICENSE
Makefile Run npm install as part of the install (#12899) 2020-12-05 08:17:25 -08:00
README.md [docs] Update http to https (#13225) 2021-01-12 12:31:41 -08: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 Initial support for pthreads + dynamic linking (#13245) 2021-01-14 12:32:29 -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 Improve error message when check for multiple of page size (#13279) 2021-01-18 08:18:22 -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.12 (#13221) 2021-01-09 08:21:25 -08:00
emscripten.py Remove need to `getQuoted` by using seperate template pattern (#13265) 2021-01-15 09:02:57 -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: https://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.