Interlanguage calls

Conventions for XL Fortran external names
Mixed-language input and output
Mixing Fortran and C++
Making calls to C functions work
Passing data from one language to another
Passing arguments between languages
Passing global variables between languages
Passing character types between languages
Passing arrays between languages
Passing pointers between languages
Passing arguments by reference or by value
Explicit interface for %VAL and %REF
Example with VALUE attribute
Passing complex values to/from gcc
Returning values from Fortran functions
Arguments with the OPTIONAL attribute
Assembler-level subroutine linkage conventions
The stack
The Link Area and Minimum Stack Frame
The input parameter area
The register save area
The local stack area
The output parameter area
Linkage convention for argument passing
Argument passing rules (by value)
Order of arguments in argument list
Linkage convention for function calls
Pointers to functions
Function values
The Stack floor
Stack overflow
Prolog and epilog
Traceback
THREADLOCAL common blocks and interlanguage calls with C
Example

This section provides details on performing interlanguage calls from your Fortran application, allowing you to call routines that were written in a language other than Fortran. The guidelines assume that you are familiar with the syntax of all applicable languages.