HP 3000 Manuals

Use of COMMON and Labels [ HP FORTRAN 77/iX Reference ] MPE/iX 5.0 Documentation


HP FORTRAN 77/iX Reference

Use of COMMON and Labels 

Non-FORTRAN program units cannot access a FORTRAN COMMON area and FORTRAN
program units cannot access the global variables of non-FORTRAN programs.
All data must be passed through the parameter lists.  If a FORTRAN
program calls a non-FORTRAN program unit, the FORTRAN program can contain
COMMON areas, but the non-FORTRAN unit cannot use global variables.  If a
non-FORTRAN program calls a FORTRAN subprogram, the program can use
global variables and the FORTRAN routine can use COMMON variables.  The
global variables and COMMON variables occupy distinct areas of memory.

Labels cannot be used as parameters when calling non-FORTRAN program
units.



MPE/iX 5.0 Documentation