请选择 进入手机版 | 继续访问电脑版

技术控

    今日:236| 主题:57266
收藏本版 (1)
最新软件应用技术尽在掌握

[其他] Rust gets working asmjs and wasm targets

[复制链接]
拾忆 发表于 2016-10-2 06:18:40
140 2
This patch set results in a working standard library for the asmjs-unknown-emscripten and wasm32-unknown-emscripten targets. It is based on the work [email protected] [email protected]  
  It does a few things:
  
       
  • Updates LLVM with the emscriptenfastcomp patches, which include the pnacl IR legalizer and the asm.js backend. This patch is thought not to have any significant effect on existing targets.   
  • Teaches rustbuild to correctly link C code with emscripten   
  • Updates gcc-rs to work correctly with emscripten   
  • Teaches rustbuild to run crate tests for emscripten with node   
  • Modifies Thread::new to return an error on emscripten, to facilitate debugging a common failure mode   
  • Modifies libtest to run in single-threaded mode for emscripten   
  • Ignores a host of tests that don't work yet, mostly dealing with threads and I/O   
  • Updates libc with wasm32 definitions (presently the same as asmjs)   
  • Adds a wasm32-unknown-emscripten target that feeds the output of LLVM's asmjs backend through emcc to generate wasm  
  Notes and caveats:
  
       
  • This is only known to work with      --enable-rustbuild.   
  • The wasm32 target can't be tested correctly yet because of issues in compiletest and limitations in node      kripken/emscripten#4542, but hello.rs does seem to work when run on node via the binaryen interpreter   
  • This requires an up to date installation of the emscripten sdk from its incoming branch   
  • Unwinding is very broken   
  • When enabling the emscripten targets jemalloc is disabled for all targets, which results in test failures for the host  
  Next steps are to fix the jemalloc issue, start building the two emscripten targets on the auto builders, then start producing nightlies.
  #36317 tracks work on this.  
    Fixes#36515   
    Fixes#36515   
    Fixes#36356



上一篇:Why I'm a React Native Developer: A Response to Ariel Elkin
下一篇:2016 Web开发资源工具大搜罗
何秀频 发表于 2016-10-21 05:34:16
呵呵。。。顶顶
回复 支持 反对

使用道具 举报

邓涛 发表于 2016-11-3 16:10:40
不错 支持一个了
回复 支持 反对

使用道具 举报

我要投稿

回页顶回复上一篇下一篇回列表
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 | 粤公网安备 44010402000842号 )

© 2001-2017 Comsenz Inc.

返回顶部 返回列表