z/OS Language Environment Writing Interlanguage Communication Applications
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


External data

z/OS Language Environment Writing Interlanguage Communication Applications
SA38-0684-00

External data in a C routine can be shared with a common block of the same name in a Fortran routine in the same load module under the following conditions:
  • The C static data is declared outside of any functions
  • The C external data is NORENT, either from compiling the source file as NORENT, or by marking the variable as NORENT with #pragma variable(xxxx, NORENT).
  • The Fortran static common blocks are either used only with one load module in an application or they are declared as private common blocks. A private common block is not shared across load modules and must by created in any of the following ways:
    • Specified or implied by the PC compiler option
    • Referenced by Fortran object code produced by the VS FORTRAN Version 2 Release 4 compiler or earlier
    • In an application that executes with the PC runtime option.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014