技术控

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

[其他] Rust gets working asmjs and wasm targets

[复制链接]
拾忆 发表于 2016-10-2 06:18:40
68 2

立即注册CoLaBug.com会员,免费获得投稿人的专业资料,享用更多功能,玩转个人品牌!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
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
不错 支持一个了
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

我要投稿

推荐阅读

扫码访问 @iTTTTT瑞翔 的微博
回页顶回复上一篇下一篇回列表手机版
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 )|网站地图 酷辣虫

© 2001-2016 Comsenz Inc. Design: Dean. DiscuzFans.

返回顶部 返回列表