Each language has a different command to invoke its compiler. The
following table lists some of the languages z/VM supports and
the corresponding command to invoke the language compiler.
Language
Compiler Command
VS COBOL II
COBOL2
OS PL/I
PLIOPT
VS Pascal
VSPASCAL
VS FORTRAN
FORTVS2
C/C++
c89 or cxx
CC (for non-OpenExtensions program only)
Ada/370
A370 (for single source file)
PKG370 (for multiple source files)
When you invoke these commands, CMS searches all of your accessed
disks or directories, using the standard search order, until it locates
the specified file. See CMS Command Search Order for
a description of the search order. The compiler creates an output
listing file (file type of LISTING) and a text deck file (file type
of TEXT). LISTING files contain the compilation list for each source
file you compile. TEXT files contain the machine-language relocatable
object code.
The compiler writes these files to disk according to the following
priorities:
If the source file is on a read/write minidisk or directory, the
TEXT and LISTING files are written onto that minidisk or directory.
If the source file is on a read-only minidisk or directory that
is an extension of a read/write minidisk or directory, the TEXT and
LISTING files are written onto the read/write minidisk or directory.
If the source file is on any other read-only minidisk or directory,
the TEXT and LISTING files are written onto the first read/write minidisk
or directory.
If the source file is on tape or in your virtual reader, the TEXT
and LISTING files are written onto the first read/write minidisk or
directory.
If the preceding choices are not available, the command is terminated.
Example: Suppose you have a FORTRAN program called TESTPROG
FORTRAN. To compile the TESTPROG program using the VS FORTRAN Version
2 compiler, enter:
fortvs2 testprog
CMS creates two files on your read/write minidisk or directory:
TESTPROG TEXT and TESTPROG LISTING.
The following figure shows the files the FORTRAN compiler uses:
Figure 1. Files the FORTRAN
Compiler Uses
If your FORTRAN program compiled correctly, you receive a message
similar to the following:
VS FORTRAN VERSION 2 COMPILER ENTERED. 15:33:48
**TESTPROG** END OF COMPILATION 1 ******
VS FORTRAN VERSION 2 COMPILER EXITED. 15:33:48
Ready; T=0.06/0.02 15:33:49