C++ Doesn't Change The Speed Of GCC
![GNU](/assets/categories/gnu.webp)
Google's Ian Taylor, a GCC expert, has claimed the C subset of C++ is just as far as the native C implementation. Meanwhile, Rusty Russell decided to question these claims so he ran his own tests when building GCC 4.7.2 in C and C++ modes. After building the GNU Compiler Collection both ways, he compared the performance of the resulting compilers when building the Linux kernel ten times.
The result? The C++ binary is slightly larger due to more debugging information, but the compile time is about the same. Rusty ended his blog post with "so whether you like C++ or not, the performance argument is moot."
26 Comments