Interlanguage Calls

Partial Table-of-Contents

  • 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
  • Passing Complex Values to/from gcc
  • Returning Values from Fortran Functions
  • Arguments with the OPTIONAL Attribute
  • Arguments with the INTENT Attribute
  • Type Encoding and Checking
  • 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 ILC with C
  • Example
  • This section gives details about performing interlanguage calls from your Fortran program: that is, calling routines that were written in a language other than Fortran. It assumes that you are familiar with the syntax of all applicable languages. IBM Copyright 2003