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.
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).