MAKVIR is a FORTRAN-callable subroutine which will set a physical memory
GUIDELINE for a program. The calling sequence is
CALL MAKVIR(IGUIDE)
where IGUIDE is the physical memory GUIDELINE which you want to set
expressed in PAGES of memory. For example, if you want to try to limit
your program to using 20K words = 40 pages of physical memory, you use
CALL MAKVIR(40)
To reset your physical memory GUIDELINE to the maximum, use an argument
of 0. An outline of a typical program would look like this:
PROGRAM BIGGY
DIMENSION X(10000),Y(10000),Z(10000)
CALL MAKVIR(40) !SETS A GUIDELINE OF 40 PAGES = 20K WORDS
.
. the rest of the program goes here
.
CALL MAKVIR(0) !RESETS THE GUIDELINE TO MAX
STOP
END