Citation :
[...]
Routines names
--------------
On some machines (e.g. UNIX) the FORTRAN compiler appends a trailing underscore to FORTRAN routine names, both in subroutine/function definitions and when calling them. Why add the underscore suffix? Possible explanations are:
o Prevent name clashes of user-written routines with the routines in the system libraries used by the compiler at link time (the routine names in these libraries usually don't have a trailing underscore). For example, UNIX system routines may have simple names,
that may be used in a user program.
o Prevent "amateurish" mixed-language programming. Without proper understanding these attempts may produce erroneous results. In mixed-language programs on such machines, the linker will have a problem when trying to match routine calls and routine code in the object code. [...]
|