安装 Emscripten编译器
使用SDK方式安装更方便
解压下载的zip,进入SDK的解压目录。逐步执行如下命令
# Fetch the latest registry of available tools.
./emsdk update
# 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

本文介绍了如何使用Emscripten SDK安装编译器,并通过一个简单的hello.c示例演示了将C代码转换为asm.js的过程,最后提供了相关教程的参考链接。
最低0.47元/天 解锁文章

1040

被折叠的 条评论
为什么被折叠?



