Is Fortran or C++ code better optimized?

I’ve heard before that in order to catch up with Fortran, C need to set some compiler options such as register aliasing, is it still the case now?
I highly suspect so because C is designed for general purpose, so it must support some features that are of no use for numerical programs, but highly valuable in some other domains. On the contrary, Fortran can ignore them and become much simpler, without losing anything if you only use numerical programs.

1 Like