News for hackers. Stuff that matters.
Re:PLOS2021: ISO-C became unusable for operating systems by not2b on Thursday October 07, 2021 @07:26PM (#28793467)
You're right, sort of. Because C doesn't have proper arrays, you make up for it by passing a pointer to the first element and the range. So for C to do as well as Fortran on matrix operations the compiler developers need help. One source of help is that if you have a pointer to double and a pointer to int, you can assume that writing pdouble[k] doesn't alter anything reachable as pint[m].
Re:PLOS2021: ISO-C became unusable for operating systems by vyodaiken on Thursday October 07, 2021 @09:32PM (#28794639)
It's because C has pointers and FORTRAN doesn't and pointers are a pain for certain types of optimization.