Emscripten: An LLVM-to-JavaScript Compiler
Перейти к файлу
Sam Clegg ce1dfab70b docs: Feedback from #15613. NFC 2021-11-29 20:41:20 -08:00
.circleci Add minimal wasm64 testing to CI. NFC (#15595) 2021-11-22 17:24:23 -08:00
.github Remove welcome message bot (#15084) 2021-09-21 13:38:54 -07:00
cmake/Modules New EMSCRIPTEN_SYSTEM_PROCESSOR property in CMake toolchain (#15297) 2021-10-15 16:04:23 -07:00
docs Use modern -s command line lists in more places. NFC (#15516) 2021-11-15 15:17:03 -08:00
media Remove artifacts from Emscripten_logo_full, added single logo svg/png (#13790) 2021-03-30 16:08:55 -07:00
site docs: Feedback from #15613. NFC 2021-11-29 20:41:20 -08:00
src [WASMFS] Remove EM_ASM from wasmfs.cpp (#15646) 2021-11-29 15:29:53 -08:00
system Remove _pthread_isduecanceled in favor of ->cancel. NFC. (#15625) 2021-11-29 17:18:39 -08:00
tests Remove _pthread_isduecanceled in favor of ->cancel. NFC. (#15625) 2021-11-29 17:18:39 -08:00
third_party Make use of pathlib.Path when dealing with paths within emscripten. NFC (#14916) 2021-08-20 09:42:56 -07:00
tools change can_build to can_use (#15649) 2021-11-29 16:16:20 -08:00
.clang-format Change .clang-format (#15299) 2021-10-14 21:36:41 -04:00
.coveragerc Bring emcoverage tool back to life. NFC (#13598) 2021-03-04 10:48:02 -08:00
.editorconfig Add .editorconfig (#8359) 2019-03-28 09:52:16 -07:00
.eslintrc.yml Add eslint for linting our build-time JS code (#13305) 2021-01-26 12:58:39 -08:00
.flake8 Fix flake8 warnings in webidl_binder.py. NFC (#13823) 2021-04-06 12:03:49 -07:00
.gitattributes Fix typo in .gitattributes (#11060) 2020-05-01 16:18:49 -07:00
.gitignore Bring emcoverage tool back to life. NFC (#13598) 2021-03-04 10:48:02 -08:00
.gitmodules Update posixtestsuite submodule (#13013) 2020-12-11 13:24:29 -08:00
.style.yapf Add .style.yapf for the YAPF python formatter (#6782) 2018-06-29 17:25:55 -07:00
AUTHORS Fix RAWNODFS opendir and more (#15167) 2021-10-12 16:21:55 -07:00
CONTRIBUTING.md Link to emscripten.org for contributing info. (#10612) 2020-03-02 13:43:34 -08:00
ChangeLog.md Set emscripten_is_main_browser_thread based on ENVIRONMENT_IS_WEB (#15630) 2021-11-24 20:08:08 +00:00
LICENSE mention third_party in LICENSE 2016-04-13 11:06:10 -07:00
Makefile Run npm install as part of the install (#12899) 2020-12-05 08:17:25 -08:00
README.md Switch primary git branch from `master` to `main` (#13624) 2021-03-08 15:51:21 -08:00
em++ Unix entry points: correctly detect the availability of a python binary (#15071) 2021-09-20 16:37:57 -07:00
em++.bat Avoid sharing the parent process's stdin handle to python on Windows + other Windows bat script fixes (#15146) 2021-10-06 11:11:45 -07: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 Unix entry points: correctly detect the availability of a python binary (#15071) 2021-09-20 16:37:57 -07:00
em-config.bat Avoid sharing the parent process's stdin handle to python on Windows + other Windows bat script fixes (#15146) 2021-10-06 11:11:45 -07:00
em-config.py Split config file handling out of shared.py. NFC. (#12699) 2020-11-09 08:06:33 -08:00
emar Unix entry points: correctly detect the availability of a python binary (#15071) 2021-09-20 16:37:57 -07:00
emar.bat Avoid sharing the parent process's stdin handle to python on Windows + other Windows bat script fixes (#15146) 2021-10-06 11:11:45 -07:00
emar.py Create wrappers for llvm-dwp and llvm-nm (#14659) 2021-07-16 17:44:40 -07:00
embuilder Unix entry points: correctly detect the availability of a python binary (#15071) 2021-09-20 16:37:57 -07:00
embuilder.bat Avoid sharing the parent process's stdin handle to python on Windows + other Windows bat script fixes (#15146) 2021-10-06 11:11:45 -07:00
embuilder.py Add multithreaded variant to ICU port (#15592) 2021-11-29 22:46:23 +00:00
emcc Unix entry points: correctly detect the availability of a python binary (#15071) 2021-09-20 16:37:57 -07:00
emcc.bat Avoid sharing the parent process's stdin handle to python on Windows + other Windows bat script fixes (#15146) 2021-10-06 11:11:45 -07:00
emcc.py Move free'ing of thread data to native code. NFC (#15551) 2021-11-18 07:33:53 -08:00
emcmake Unix entry points: correctly detect the availability of a python binary (#15071) 2021-09-20 16:37:57 -07:00
emcmake.bat Avoid sharing the parent process's stdin handle to python on Windows + other Windows bat script fixes (#15146) 2021-10-06 11:11:45 -07:00
emcmake.py Enable threads under node when running cmake checks (#15590) 2021-11-23 15:55:04 -08:00
emconfigure Unix entry points: correctly detect the availability of a python binary (#15071) 2021-09-20 16:37:57 -07:00
emconfigure.bat Avoid sharing the parent process's stdin handle to python on Windows + other Windows bat script fixes (#15146) 2021-10-06 11:11:45 -07:00
emconfigure.py Move cmake/configure/make code out of shared.py and into the scripts themselves. NFC. (#13772) 2021-03-25 23:38:25 +01:00
emdump Unix entry points: correctly detect the availability of a python binary (#15071) 2021-09-20 16:37:57 -07:00
emdump.bat Avoid sharing the parent process's stdin handle to python on Windows + other Windows bat script fixes (#15146) 2021-10-06 11:11:45 -07:00
emdwp Unix entry points: correctly detect the availability of a python binary (#15071) 2021-09-20 16:37:57 -07:00
emdwp.bat Avoid sharing the parent process's stdin handle to python on Windows + other Windows bat script fixes (#15146) 2021-10-06 11:11:45 -07:00
emmake Unix entry points: correctly detect the availability of a python binary (#15071) 2021-09-20 16:37:57 -07:00
emmake.bat Avoid sharing the parent process's stdin handle to python on Windows + other Windows bat script fixes (#15146) 2021-10-06 11:11:45 -07:00
emmake.py Remove the workaround added for CMake where it was not able to stand sh.exe residing in PATH (#14930) 2021-09-07 13:26:12 +01:00
emnm Unix entry points: correctly detect the availability of a python binary (#15071) 2021-09-20 16:37:57 -07:00
emnm.bat Avoid sharing the parent process's stdin handle to python on Windows + other Windows bat script fixes (#15146) 2021-10-06 11:11:45 -07:00
emprofile Unix entry points: correctly detect the availability of a python binary (#15071) 2021-09-20 16:37:57 -07:00
emprofile.bat Avoid sharing the parent process's stdin handle to python on Windows + other Windows bat script fixes (#15146) 2021-10-06 11:11:45 -07:00
emranlib Unix entry points: correctly detect the availability of a python binary (#15071) 2021-09-20 16:37:57 -07:00
emranlib.bat Avoid sharing the parent process's stdin handle to python on Windows + other Windows bat script fixes (#15146) 2021-10-06 11:11:45 -07:00
emranlib.py Fix remaining #! lines that were not using python3 (#14325) 2021-05-30 12:06:58 -07:00
emrun Unix entry points: correctly detect the availability of a python binary (#15071) 2021-09-20 16:37:57 -07:00
emrun.bat Avoid sharing the parent process's stdin handle to python on Windows + other Windows bat script fixes (#15146) 2021-10-06 11:11:45 -07:00
emrun.py Explicitly close file descriptors in python code. NFC (#14074) 2021-06-15 17:05:21 -07:00
emscons Unix entry points: correctly detect the availability of a python binary (#15071) 2021-09-20 16:37:57 -07:00
emscons.bat Avoid sharing the parent process's stdin handle to python on Windows + other Windows bat script fixes (#15146) 2021-10-06 11:11:45 -07:00
emscons.py Make use of pathlib.Path when dealing with paths within emscripten. NFC (#14916) 2021-08-20 09:42:56 -07:00
emscripten-version.txt Mark 3.0.0 as released (#15596) 2021-11-22 16:08:31 -08:00
emscripten.py Rename internal PROFILING_FUNCS setting to EMIT_NAME_SECTION. NFC (#15493) 2021-11-11 15:22:54 -08:00
emsize Unix entry points: correctly detect the availability of a python binary (#15071) 2021-09-20 16:37:57 -07:00
emsize.bat Avoid sharing the parent process's stdin handle to python on Windows + other Windows bat script fixes (#15146) 2021-10-06 11:11:45 -07:00
emsize.py Update emsize after roll (#14633) 2021-07-12 11:55:59 -07:00
package-lock.json Run `npm audit fix` to address dependabot alerts. NFC (#15619) 2021-11-24 11:02:28 -08:00
package.json Update html-minifier-terser (#15442) 2021-11-05 11:08:53 -07:00
requirements-dev.txt Pin docutils version. NFC (#15363) 2021-10-26 14:08:19 -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.