XL Fortran for AIX 8.1

User's Guide


Chapter 10. Interlanguage Calls

Partial Table-of-Contents

  • Conventions for XL Fortran External Names
  • Mixed-Language Input and Output
  • Mixing Fortran and C++
  • 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
  • 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
  • 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 chapter 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.


    [ Top of Page | Previous Page | Next Page | Table of Contents | Index ]