Cling: An Interactive, JIT-Based C++ Interpreter

Written by Michael Larabel in Programming on 16 September 2013 at 10:42 AM EDT. 5 Comments
PROGRAMMING
After writing about ClangFormat yesterday as an interesting LLVM project that leverages Clang to automatically reformat C/C++ source-code, a Phoronix reader wrote in about another interesting project, Cling. Cling is an interactive C++ interpreter that uses Clang for Just-In-Time compilation.

Phoronix reader Nicola Mori wrote in about Cling as a CERN research project that's interesting and worthy of a shout out.

Cling is an LLVM/Clang-based C++ interpreter with the advantages according to its developers being a command-line prompt and its using JIT compilation of the C++ code. The ultimate desire is to have a contemporary, high-performance alternative C++ interpreter for their ROOT project.

With leveraging the Clang compiler front-end, Cling can already handle all of the C++ code supported by upstream. The Cling project has been going on for a few years and it's making good headway as a C++ interpreter as shown by their own performance study, plus other data available from the project web-site.

For those wanting to learn more about the Cling C++ interpreter, visit CERN.ch.
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