3 ms·
> To get “faster than C” you need to hand-code in assembler, and know your target CPU really well to outsmart the compiler. Ada compilers can beat C compilers,
by protomyth 11y ago
> To get “faster than C” you need to hand-code in assembler, and know your target CPU really well to outsmart the compiler.
Ada compilers can beat C compilers, and languages with some restrictions such as Fortran can beat C.
- AlisdairO 10y ago'restrict' is part of the C specification these days, so Fortran has no theoretical performance advantage over C. Of course, there is a body of code in Fortran built up with restrict-semantics applied by default, so there may well be real-world advantages.