GCC Compiler Migrating To Be More C++ Based

Written by Michael Larabel in Google on 24 June 2011 at 04:16 PM EDT. 10 Comments
GOOGLE
Last week at Google's offices in London there was a gathering of GCC (GNU Compiler Collection) developers to discuss various topics from C++0x and GDB to the compiler's plug-in API. There are notes from this 2011 GCC Gathering on the GCC Wiki for those interested, but perhaps most interesting was their discussion surrounding the planned migration to C++. GCC itself is largely written in C at this point, but there's an effort under-way to switch more of this compiler code to being more C++ based.

GCC already uses C++ code in some areas such as for overloading, templates, and virtual tables, but the thoughts for this GCC language migration are to use the C++03 standard with macros preparing for C++0x. Predicate/accessor macros will be converted to C++ inline functions along with changing all C cases to C++. Further down the road is using the class hierarchy and member functions support of C++ along with various data structures.

The expressed reasons in the GCC notes for this migration are, "C++ is a tool to make the code base use more standard idioms, which makes it easy for newcomers." Not all of the active GNU Compiler Collection developers are onboard with this migration with several viewing this as "another incomplete transition with lots of fairly pointless churn."

More in the official notes.
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