News for hackers. Stuff that matters.
Re:C, Fortran, and single-character strings by ryl00 on Friday June 21, 2019 @10:27PM (#20247665)
I work on a large, multi-platform, legacy codebase of C/C++ and Fortran, and the FFI between the two sides has always been an area where care must be taken to ensure proper interop.

Being multi-platform, multi-compiler through the years has helped us ferret out FFI problems like the one described here, as our Windows Fortran compiler used to be Compaq Visual Fortran, which interleaved character strings with their length argument (as opposed to gfortran, which puts all such string lengths at the very end of the argument list). With Compaq Visual Fortran (and Intel Fortran with the right options set), forgetting to specify a string length argument on the C side would almost invariably lead to immediate crashes (unless, of course, the sole string argument was at the end).

Re:C, Fortran, and single-character strings by ChickeNES on Friday June 21, 2019 @10:46PM (#20247730)
Compaq had their own Fortran compiler?
Re:C, Fortran, and single-character strings by EvanAnderson on Friday June 21, 2019 @11:11PM (#20247791)
It was DEC's and came to Compaq by way of the acquisition.