Calling Subprograms from the Main Program

Calls from the Main Program

The Intel Fortran main program can call Intel Fortran subprograms, including subprograms in static and shared libraries.

For mixed-language applications, the Intel Fortran main program can call subprograms written in Intel® C++ if the appropriate calling conventions are used (see Calling C Procedures from a Fortran program).

Intel Fortran subprograms can be called by Intel C++ main programs

Calls to the Subprogram

You can use subprograms in static libraries if the main program is written in Intel Fortran or Intel C++.

You can use subprograms in shared libraries in mixed-language applications if the main program is written in Intel Fortran or Intel C++.