3 ms·
> The issue with optimizability in C is mostly solved by the C99 `restrict` keyword I've seen people claim this, but I've yet to see optimizing compilers for C
by vmchale 8y ago
> The issue with optimizability in C is mostly solved by the C99 `restrict` keyword
I've seen people claim this, but I've yet to see optimizing compilers for C actually match those for Fortran.
- TomVDB 8y agoIn practical terms: what kind of performance difference would one see between optimized C(++) and optimized Fortran when running exactly the same algorithm?
- cbkeller 8y agoAccording to the Julia benchmarks (and I assume Julia folks are relatively unbiased re: C vs Fortran), it depends on the algorithm [1], but less than an order of magnitude in either direction. I'm kinda surprised Fortran doesn't do better there actually -- but at this level it probably also depends on compiler and architecture. [1] https://julialang.org/benchmarks/ https://julialang.org/benchmarks/
- igouy 8y agohttps://benchmarksgame-team.pages.debian.net/benchmarksgame/faster/fortran.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...