User Tools

Site Tools


vm_cms_fortran

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

vm_cms_fortran [2018/07/13 02:22] (current)
ahd created
Line 1: Line 1:
 +==== FORTRAN programs ====
  
 +The VS FORTRAN compiler supports the Fortran 77 standard.
 +
 +Create your source file with file type ''​FORTRAN''​.
 +
 +     X EXAMPLE FORTRAN A
 +
 +Compile your program:
 +
 +     ​FORTVS2 EXAMPLE
 +
 +Define standard load libraries: (Example is for load mode execution of temporary virtual memory copy of program executable. The following two commands only need to be executed once per CMS session.)
 +
 +     ​GLOBAL TXTLIB VSF2FORT
 +     ​GLOBAL LOADLIB VSF2LOAD
 +
 +Load your executable program into virtual memory:
 +
 +     LOAD EXAMPLE
 +
 +Run your program:
 +
 +     START
 +
 +==== To Save an Executable ====
 +
 +Once you have a text file, you also make it into a ''​MODULE''​ file to be run multiple times:
 +
 +      GENFORTV EXAMPLE
 +      ​
 +As this runs to make ''​EXAMPLE MODULE''​ from ''​EXAMPLE TEXT'',​ it prints the commands to uses to give you understanding of the process.
vm_cms_fortran.txt · Last modified: 2018/07/13 02:22 by ahd