Hacker News new | ask | show | jobs
by alexk7 4831 days ago
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.

1 comments

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.