CIB: Getting The Clang Compiler To Run In A Web Browser

Written by Michael Larabel in LLVM on 1 January 2018 at 04:13 PM EST. 14 Comments
LLVM
CIB is a new hobby project getting the full-blown Clang C/C++ compiler to run within a web browser as a technical feat.

Independent developer Todd Fleming has been working on "CIB" that is short for "Clang In Browser." This comes down to Clang itself being compiled to WebAssembly (WASM) for then running in web-browsers.

The WASM-ported Clang can run within Firefox 57 and Chrome 63 and the clang-format utility is an example of what's working while the Clang compiler itself is successfully working for compiling simple cases.

Those interested in this project for showing off the power of WebAssembly can find it hosted on GitHub.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week