Rusty Russell
ran an
investigation to determine whether code compiled with the GCC C++
compiler is slower than code from the C compiler. "
With this in
mind, and Ian Taylor’s bold assertion that 'The C subset of C++ is as
efficient as C', I wanted to test what had changed with some actual
measurements. So I grabbed gcc 4.7.2 (the last release which could do
this), and built it with C and C++ compilers." His conclusion is
that the speed of the compiler is the same regardless of how it was built;
using C++ does not slow things down.
(
Log in to post comments)