C Language Modules For LLVM Still Being Tackled

Written by Michael Larabel in LLVM on 20 March 2013 at 12:56 PM EDT. 18 Comments
LLVM
Last year at the LLVM developers' meeting it was proposed by an Apple engineer the concept of "modules" for C code in LLVM/Clang to replace the common development approach for C/C++ languages of including header files and passing the library to the linker. LLVM modules seek to take a different approach.

For those that didn't see the original presentation by Apple's Doug Gregor about his proposal to introduce "modules" to C/C++, there are still PDF slides available. This is still considered experimental work, but he views C family headers as being a fundamentally broken design and sees a new for a module system for the C family and building better tools.

Among the problems expressed with the current #include model is that there's poor compile-time scalability with including of header files for pre-processing, fragility of the #include directive, conventional workarounds, and tool confusion. These are among the items the module system seeks to solve.

Anyhow, what's new today is that Gregor has committed to the Clang tree a bunch of documentation concerning this experimental module system for C/C++ programming languages. As this isn't a topic that interests all Phoronix readers, for those wanting to learn more about the proposed module system, read the new Clang documentation.
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