HP-UX Fortran/C Procedure Calling Protocol

Bill Canning billc at wupulm.UUCP
Fri Jun 30 09:43:54 AEST 1989


Could someone out there tell me how FORTRAN/9000 expects
functions to return thier values?  Is it in the same
registers that C would return the same type of value,
(e.g., INTEGER*4 returned in register D0 by FORTRAN,
long int returned in reg. D0 in C.)  I am trying to
port some code that is written in both FORTRAN and
C, originally created on Data General equipment.

Any help someone could offer would be greatly appreciated.

Thanks in advance,
Bill Canning
..!uunet!wugate!wupost!wupulm!billc



More information about the Comp.lang.c mailing list