WebAssembly 火了!背后的 LLVM 功不可没!( 三 )


cmake -G Ninja -S path/to/llvm-project/llvm -B $builddir-DLLVM_INSTALL_UTILS=ON-DCMAKE_INSTALL_PREFIX=/path/to/llvm/install/prefix< other options >ninja -C $builddir install安装 llvm 后,要独立构建配置项目,如下调用 CMake:
cmake -G Ninja -S path/to/llvm-project/$subproj-B $buildir_subproj-DLLVM_EXTERNAL_LIT=/path/to/lit 7.本文总结本文主要带着大家了解 WebAssembly 学习路上遇到的LLVM。文章从什么是LLVM、LLVM:为可移植性而设计、编程语言如何使用 LLVM、使用各种语言的 LLVM、LLVM 不做什么等方面逐步深入 。
因为篇幅有限,文章并没有过多展开,如果有兴趣,可以在我的主页继续阅读,同时文末的参考资料提供了大量优秀文档以供学习 。最后,欢迎大家点赞、评论、转发、收藏!
 
参考资料

原文链接:
https://www.infoworld.com/article/3247799/what-is-llvm-the-power-behind-swift-rust-clang-and-more.html
原文作者:Serdar Yegulalp
翻译&修改:头条号高级前端进阶
封面图:
https://hacks.mozilla.org/2017/02/creating-and-working-with-webassembly-modules/
https://www.heavy.ai/technical-glossary/llvm
https://github.com/llvm/llvm-project
https://llvm.org/
https://llvm.org/docs/GettingStarted.html
https://www.toutiao.com/article/7208714402630058531/
https://github.com/WasmEdge/WasmEdge

【WebAssembly 火了!背后的 LLVM 功不可没!】


推荐阅读