3 ms·
The huge difference is that Fortran defaults to what is in C restrict pointers -- non-overlapping memory regions. This is something most programmers have not e
by dagss 3y ago
The huge difference is that Fortran defaults to what is in C restrict pointers -- non-overlapping memory regions.
This is something most programmers have not even heard about...
This means simple Fortran programs have more room for parallelizing optimizing compilers than C programs (without restrict annotations).
https://en.m.wikipedia.org/wiki/Restrict https://en.m.wikipedia.org/wiki/Restrict
- KerrAvon 3y agoUtterly bizarre that I've been reading about the pointer aliasing/restrict problems with C since 1993 and the problem hasn't been solved in 20 years.
- noobermin 3y agoThe reason is that it isn't a really a problem for C programs and is infact very desireable for some applications (OSes for example :) )