.bp Appendix: Usage on C UNIX and C GCOS .
Beware _ local customs vary. Check with a native before going into the jungle.
UNIXThe program ratfor is the basic translator; it takes either a list of file names or the standard input and writes Fortran on the standard output. Options include -6x , which uses x as a continuation character in column 6 C UNIX "" ( uses & in column 1), and -C , which causes Ratfor comments to be copied into the generated Fortran.
The program rc provides an interface to the ratfor command which is much the same as cc . Thus
1 rc [options] files
2 compiles the files specified by files . Files with names ending in .r are Ratfor source; other files are assumed to be for the loader. The flags -C and -6x described above are recognized, as are
1 -c compile only; don't load -f save intermediate Fortran .f files -r Ratfor only; implies -c and -f -2 use big Fortran compiler (for large programs) -U flag undeclared variables (not universally available)
2 Other flags are passed on to the loader.
GCOSThe program ./ratfor is the bare translator, and is identical to the C UNIX version, except that the continuation convention is & in column 6. Thus
1 ./ratfor files >output
2 translates the Ratfor source on files and collects the generated Fortran on file `output' for subsequent processing.
./rc provides much the same services as rc (within the limitations of C GCOS ), regrettably with a somewhat different syntax. Options recognized by ./rc include
1 name Ratfor source or library, depending on type h=/name make TSS H* file (runnable version); run as /name r=/name update and use random library a= compile as ascii (default is bcd) C= copy comments into Fortran f=name Fortran source file g=name gmap source file
2 Other options are as specified for the ./cc command described in [4].
TSO, TSS, and other systemsRatfor exists on various other systems; check with the author for specifics.