Emscripten: An LLVM-to-JavaScript Compiler
Перейти к файлу
Kleis Auke Wolthuizen 0fe9b0b2f1
Add missing Closure extern for ftruncateSync (#14877)
Otherwise, the Closure Compiler might rename fs.ftruncateSync
during compilation when the NODERAWFS filesystem backend
is used.
2021-08-16 15:51:44 -07:00
.circleci Support Sanitizers + Asyncify (#14864) 2021-08-13 13:01:02 -07:00
.github
cmake/Modules cmake: Default to installing into sysroot (#14293) 2021-05-27 18:58:03 +02:00
docs [Docs] More docs on building the docs: pip and requirements-dev.txt (#14483) 2021-06-22 14:31:10 -07:00
media
site Added timestamp to EmscriptenTouchEvent (#14752) 2021-08-06 10:48:06 +03:00
src Remove unused `objectTransfer` command. NFC (#14875) 2021-08-16 13:31:28 -07:00
system Move a part of pthread_create to native code. NFC (#14858) 2021-08-13 13:12:15 -07:00
tests Add missing Closure extern for ftruncateSync (#14877) 2021-08-16 15:51:44 -07:00
third_party Add missing Closure extern for ftruncateSync (#14877) 2021-08-16 15:51:44 -07:00
tools Reland "Cleanup tools/emprofile.py and add more testing. NFC (#13403)" (#13416) 2021-08-10 09:47:10 -07:00
.clang-format
.coveragerc
.editorconfig
.eslintrc.yml
.flake8
.gitattributes
.gitignore
.gitmodules
.style.yapf
AUTHORS Added timestamp to EmscriptenTouchEvent (#14752) 2021-08-06 10:48:06 +03:00
CONTRIBUTING.md
ChangeLog.md Re-raise pthread exceptions back on the main thread (#13666) 2021-08-06 10:27:54 -07:00
LICENSE
Makefile
README.md
em++
em++.bat Fix .bat launcher to allow special characters (#14260) 2021-05-21 21:54:51 -07:00
em++.py
em-config
em-config.bat
em-config.py
emar
emar.bat
emar.py Create wrappers for llvm-dwp and llvm-nm (#14659) 2021-07-16 17:44:40 -07:00
embuilder
embuilder.bat
embuilder.py Include all ports as embuilder tasks (#14737) 2021-07-23 12:27:10 -07:00
emcc
emcc.bat Fix .bat launcher to allow special characters (#14260) 2021-05-21 21:54:51 -07:00
emcc.py Support Sanitizers + Asyncify (#14864) 2021-08-13 13:01:02 -07:00
emcmake
emcmake.bat
emcmake.py emcmake: Don't use get_building_env when running cmake (#14411) 2021-06-08 16:01:39 -07:00
emconfigure
emconfigure.bat
emconfigure.py
emdump
emdump.bat
emdwp Create wrappers for llvm-dwp and llvm-nm (#14659) 2021-07-16 17:44:40 -07:00
emdwp.bat Create wrappers for llvm-dwp and llvm-nm (#14659) 2021-07-16 17:44:40 -07:00
emmake
emmake.bat
emmake.py
emnm Create wrappers for llvm-dwp and llvm-nm (#14659) 2021-07-16 17:44:40 -07:00
emnm.bat Create wrappers for llvm-dwp and llvm-nm (#14659) 2021-07-16 17:44:40 -07:00
emprofile
emprofile.bat
emranlib
emranlib.bat
emranlib.py Fix remaining #! lines that were not using python3 (#14325) 2021-05-30 12:06:58 -07:00
emrun
emrun.bat
emrun.py Explicitly close file descriptors in python code. NFC (#14074) 2021-06-15 17:05:21 -07:00
emscons
emscons.bat
emscons.py
emscripten-version.txt Mark 2.0.26 as released (#14759) 2021-07-26 16:39:44 -07:00
emscripten.py Error if there is no main() when using PROXY_TO_PTHREAD (#14476) 2021-06-21 15:49:39 -07:00
emsize
emsize.bat
emsize.py Update emsize after roll (#14633) 2021-07-12 11:55:59 -07:00
package-lock.json Update pinned npm deps. NFC (#14580) 2021-07-02 10:34:44 -07:00
package.json Update pinned npm deps. NFC (#14580) 2021-07-02 10:34:44 -07:00
requirements-dev.txt Require sphinx-build 2.4.4 to build site (#14224) 2021-05-21 08:17:38 -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.