Interlanguage Calling Conventions
You should follow these recommendations when writing C/C++ code to call functions
written in other languages:
- Avoid using uppercase letters in identifiers. Fortran and Pascal use only lowercase
letters for all external names. Although both fold external identifiers to lowercase by
default, the Fortran compiler can be set to distinguish external names by case.
- Avoid using the underscore (_) and dollar sign ($) as the first character in
identifiers, to prevent conflict with the naming conventions for the C and C++ language
libraries.
- Avoid using long identifier names. The maximum number of significant characters in
identifiers is 250 characters.
Corresponding Data Types
Use the Subroutine Linkage Conventions in Interlanguage Calls
Sample Program: C Calling Fortran