GCC As A Just-In Time Compiler Is An Interesting Project

Written by Michael Larabel in GNU on 28 July 2014 at 11:05 AM EDT. Add A Comment
GNU
Aside from the experimental "Coconut" as a Python JIT compiler using GCC's new Just-In Time capabilities, the libgccjit.so shared library isn't yet depended upon in the real-world but the JIT compilation abilities are being built upon for hopeful incorporation into the GNU Compiler Collection.

Going back to October of 2013 has been work on this GCC-based embeddable JIT compiler that initially generated a lot of interest but has yet to be incorporated into a stable GNU Compiler Collection release.

At the recent GNU Tools Cauldron 2014 in Cambridge, there was a presentation and more discussion around libgccjit. David Malcom of Red Hat has been the one leading the GCC JIT endeavor and presented on it at the annual GNU/GCC event. For those interested his presentation slides are available here.

David Malcom wrote the Coconut compiler as an example Python JIT compiler using the new GCC interfaces, which compiles CPython bytecode into machine code and uses libgccjit's Python bindings. Malcom is hopeful bindings for other languages to libgccjit will be added going forward. Besides Coconut there's also been other experimental method JITs implemented against this GCC JIT shared library but not yet any tracing JITs.

While the code hasn't yet been merged, it's already been beneficial to GCC in finding various issues within GCC as a result of these new operations. David Malcom is encouraging distribution vendors to begin packaging libgccjit, developers to try it for their language runtimes and to hook in more language bindings, and ultimately for the work to be incorporated into the next major GCC release. Right now it's looking like the next GNU Compiler Collection release will be the release of GCC 5.0 in 2015.
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