Overview of Parameter Passing

When using the DllFunction class, it is necessary to specify the type and value of each function parameter. When calling a Fortran function from an IMLPlus program, it is necessary to map the Fortran data type expected by the function into an equivalent Java data type. ("Equivalent" in this context usually means "same bit width".) There are several issues to be aware of:

Please refer to the following topics:

Scalar Types

Array Types

Character Strings

Passing a Numeric Matrix to a Fortran Function

Passing a Character Matrix to a Fortran Function

When interfacing Fortran with IMLPlus, keep in mind that the DllFunction class is really designed for interfacing C with IMLPlus. Thus, the easiest way to interface a Fortran function with IMLPlus is to make the Fortran function look like a C function. You should review the information on passing parameters to C functions.

If you are using Compaq Visual Fortran, there is extensive documentation on the subject of interfacing Fortran with other programming languages in the Programmer's Guide in the chapter Programming with Mixed Languages.