Emscripten介绍以及安装中的坑
最近Qt更新到5.13版本,加入了很多新功能,其中包括对WebAssembly的支持。Emscripten的作用就是充当将C/C++编译成符合WebAssembly标准的二进制编码的编译器。
什么是Emscripten
最近Qt更新到5.13版本,加入了很多新功能,其中包括对 WebAssembly 的支持,WebAssembly这个词相比开发者对其一定不陌生。直译过来叫做“网页字节码”,WebAssembly是一种标准,该标准的主要贡献者为W3C、Mozilla、Microsoft、Google、Apple这类国际大厂。
回到主题,什么是Emscripten? Emscripten 是这么描述的:
Emscripten is a toolchain for compiling to asm.js and WebAssembly, built using LLVM, that lets you run C and C++ on the web at near-native speed without plugins.
翻译下来就是:
Emscripten是一个工具链,作用是通过LLVM来编译生成asm.js、WebAssembly字