Emscripten: An LLVM-to-JavaScript Compiler
Перейти к файлу
Sam Clegg ab334601cc
Update sdl2 port, removing local SDL_config.h. NFC (#14232)
SDL_config now comes form upstream.  See:
https://github.com/emscripten-ports/SDL2/pull/146
2021-05-19 10:38:10 -07:00
.circleci Set PYTHONUTF8 when running tests on windows. NFC. (#14179) 2021-05-14 03:15:10 +01:00
.github Switch primary git branch from `master` to `main` (#13624) 2021-03-08 15:51:21 -08:00
cmake/Modules Update cmake features with C++23 support (#14071) 2021-05-01 13:07:02 -07:00
docs Add a simple one-entry-per-line file format for specifying symbol lists (#14170) 2021-05-17 13:40:06 -07:00
media Remove artifacts from Emscripten_logo_full, added single logo svg/png (#13790) 2021-03-30 16:08:55 -07:00
site Remove PThreads note about SAB removal (#14206) 2021-05-18 03:10:51 +02:00
src Update docs on EXPORTED_RUNTIME_METHODS (#14210) 2021-05-17 20:48:38 -07:00
system Update SIMDe (#14194) 2021-05-16 10:51:27 -07:00
tests Add missing macros to SDL_config.h (#14219) 2021-05-19 08:13:49 -07:00
third_party Use third_party leb128 implementation. NFC (#13833) 2021-04-07 19:46:03 -07:00
tools Update sdl2 port, removing local SDL_config.h. NFC (#14232) 2021-05-19 10:38:10 -07:00
.clang-format
.coveragerc Bring emcoverage tool back to life. NFC (#13598) 2021-03-04 10:48:02 -08:00
.editorconfig
.eslintrc.yml
.flake8 Fix flake8 warnings in webidl_binder.py. NFC (#13823) 2021-04-06 12:03:49 -07:00
.gitattributes
.gitignore Bring emcoverage tool back to life. NFC (#13598) 2021-03-04 10:48:02 -08:00
.gitmodules
.style.yapf
AUTHORS fork() and system(): Change errno value from EAGAIN to ENOSYS (#14173) 2021-05-14 11:58:06 -07:00
CONTRIBUTING.md
ChangeLog.md Mark 2.0.21 as shipped (#14214) 2021-05-18 14:02:45 -07:00
LICENSE
Makefile
README.md Switch primary git branch from `master` to `main` (#13624) 2021-03-08 15:51:21 -08:00
em++ Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
em++.bat Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
em++.py
em-config Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
em-config.bat Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
em-config.py
emar Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emar.bat Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emar.py Reinstate --cache flag in its original form (#14039) 2021-04-28 13:57:30 -07:00
embuilder Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
embuilder.bat Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
embuilder.py Declare setting object in settings.py (#13918) 2021-04-16 13:01:28 -07:00
emcc Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emcc.bat Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emcc.py Add compiler mode enum. NFC (#14213) 2021-05-18 13:15:47 -07:00
emcmake Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emcmake.bat Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emcmake.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
emconfigure Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emconfigure.bat Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -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 Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emdump.bat Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emmake Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emmake.bat Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emmake.py Fix windows-only typo in emmake.py (#13813) 2021-04-05 16:26:28 -07:00
emprofile Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emprofile.bat Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emranlib Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emranlib.bat Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emranlib.py
emrun Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emrun.bat Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emrun.py Partially revert commit that broke using emrun.py outside the tree (#13412) 2021-03-16 19:54:26 +02:00
emscons Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emscons.bat Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emscons.py
emscripten-version.txt Mark 2.0.21 as shipped (#14214) 2021-05-18 14:02:45 -07:00
emscripten.py Fix BOOTSTRAPPING_STRUCT_INFO + LLD_REPORT_UNDEFINED. NFC (#14114) 2021-05-06 15:05:09 -07:00
emsize Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emsize.bat Add "do not edit" message to python entry points. NFC (#13731) 2021-03-22 11:43:02 -07:00
emsize.py
package-lock.json Remove unused sourcemapper.js tools. NFC (#14218) 2021-05-18 16:45:57 -07:00
package.json Remove unused sourcemapper.js tools. NFC (#14218) 2021-05-18 16:45:57 -07:00
requirements-dev.txt Update flake8. NFC. (#13761) 2021-03-24 11:39:28 -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.