Emscripten is an LLVM-to-JavaScript compiler. It takes LLVM bitcode - which can be generated from C/C++, using llvm-gcc
(DragonEgg) or clang
, or any other language that can be converted into LLVM - and compiles that into JavaScript, which can be run on the web (or anywhere else JavaScript can run).
接触Emscripten是因为语音识别软件pocketspinux.js利用了它把pocketspinux移植到JS,这个技术方案让我感到比较震撼,JS的强大还真是不断刷新我的想象空间!
评论