Re:GCC and C vs C++ Speed, Measured
by alexk7 on Thursday March 21, 2013 @08:32AM
(#5414550)
The results are what I expected and not that interesting. Compiling C as C++ usually yields the exact same native code as compiling it as C, except for some very minor differences.
What would be interesting is how long it now takes to compile GCC itself. For code that does not use C++ features, I also expect a very minor difference.
Re:GCC and C vs C++ Speed, Measured
by jedbrown on Thursday March 21, 2013 @10:42AM
(#5415322)
Compilation of PETSc, which is written in the intersection of C and C++, takes twice as long using a C++ compiler as using a C compiler. I'd be interested in the time difference for compiling GCC.
What would be interesting is how long it now takes to compile GCC itself. For code that does not use C++ features, I also expect a very minor difference.