Q: Passing character string lengths with 64-bit addressing

Walter Spector w6ws@earthlink.net
Fri Jan 11 16:02:00 GMT 2008


Gfortraners,

Is the 'hidden' character string length argument that is passed to
a subprogram always an int?  Or, in the case of an ABI which supports
64-bit addressing, should it be a long?

Intel (both x86_64 and IA64) pass an 8 byte integer (e.g., a long).

PGI documents they pass a 4 byte integer, even for x86_64.

What does gfortran do?

W.



More information about the Fortran mailing list