用户工具

站点工具


编程:web:emscripten

这是本文档旧的修订版!


emscripten

Emscripten是一个工具链,用于编译使用LLVM构建的asm.js和WebAssembly,它允许您以接近本机的速度在Web上运行C和C ++而无需插件。
官网:https://emscripten.org/

安装

编译安装

# Get the emsdk repo
git clone https://github.com/emscripten-core/emsdk.git

# Enter that directory
cd emsdk
# Fetch the latest version of the emsdk (not needed the first time you clone)
git pull

# Download and install the latest SDK tools.
./emsdk install latest

# Make the "latest" SDK "active" for the current user. (writes ~/.emscripten file)
./emsdk activate latest

# Activate PATH and other environment variables in the current terminal
source ./emsdk_env.sh

apt安装(仅限ubuntu)

sudo apt install emscripten

docker安装

项目地址:https://github.com/apiaryio/emscripten-docker
安装命令:

docker pull apiaryio/emcc
编程/web/emscripten.1565235242.txt.gz · 最后更改: 2019/08/08 11:34 由 cgoxopx