BSD 3 development
[unix-history] / usr / doc / ratfor / m99
CommitLineData
8340f87c
BJ
1.bp
2.if t .1C
3.SH
4Appendix: Usage on
5.UC UNIX
6and
7.UC GCOS .
8.PP
9Beware _
10local customs vary.
11Check with a native before going into the jungle.
12.SH
13UNIX
14.PP
15The program
16.UL ratfor
17is the basic translator; it takes either a list
18of file names or the standard input and writes
19Fortran on the standard output.
20Options include
21.UL \-6x ,
22which uses
23.UL x
24as a continuation character in column 6
25.UC UNIX "" (
26uses
27.UL &
28in column 1),
29and
30.UL \-C ,
31which causes Ratfor comments to be copied into
32the generated Fortran.
33.PP
34The program
35.UL rc
36provides an interface to the
37.UL ratfor
38command which is much the same as
39.UL cc .
40Thus
41.P1
42rc [options] files
43.P2
44compiles the files specified by
45.UL files .
46Files with names ending in
47.UL \&.r
48are Ratfor source; other files are assumed to
49be for the loader.
50The flags
51.UL \-C
52and
53.UL \-6x
54described above are recognized, as are
55.P1
56-c compile only; don't load
57-f save intermediate Fortran .f files
58-r Ratfor only; implies -c and -f
59-2 use big Fortran compiler (for large programs)
60-U flag undeclared variables (not universally available)
61.P2
62Other flags are passed on to the loader.
63.SH
64GCOS
65.PP
66The program
67.UL \&./ratfor
68is the bare translator, and is identical to the
69.UC UNIX
70version, except that the continuation convention
71is
72.UL &
73in column 6.
74Thus
75.P1
76\&./ratfor files >output
77.P2
78translates the Ratfor source on
79.UL files
80and
81collects the generated Fortran on file
82`output'
83for subsequent processing.
84.PP
85.UL \&./rc
86provides much the same services as
87.UL rc
88(within the limitations of
89.UC GCOS ),
90regrettably with a somewhat different syntax.
91Options recognized by
92.UL ./rc
93include
94.P1
95.ta 1.2i
96name Ratfor source or library, depending on type
97h=/name make TSS H* file (runnable version); run as /name
98r=/name update and use random library
99a= compile as ascii (default is bcd)
100C= copy comments into Fortran
101f=name Fortran source file
102g=name gmap source file
103.P2
104Other options are as specified for the
105.UL \&./cc
106command described in [4].
107.SH
108TSO, TSS, and other systems
109.PP
110Ratfor exists on
111various other systems;
112check with the author for specifics.