Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rc(1) — UNIX 32V

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fc(1)

ld(1)

f77(1)

RC(1)  —  UNIX Programmer’s Manual

NAME

rc − Ratfor compiler

SYNOPSIS

rc [ option ] [ file ] ... 

DESCRIPTION

Rc invokes the Ratfor preprocessor on a set of Ratfor source files.  It accepts three types of arguments:

Arguments whose names end with ‘.r’ are taken to be Ratfor source programs; they are preprocessed into Fortran and compiled.  Each subroutine or function ‘name’ is placed on a separate file name.f, and its object code is left on name.o. The main routine is on MAIN.f and MAIN.o; block data subprograms go on BLOCKDATA?.f and BLOCKDATA?.o. The files resulting from a ‘.r’ file are loaded into a single object file file.o, and the intermediate object and Fortran files are removed. 

The following flags are interpreted by rc. See ld and fc(1) for other flags.

−c Suppresses the loading phase of the compilation, as does any error in anything. 

−f Save Fortran intermediate files.  This is primarily for debugging. 

−r Ratfor only; don’t try to compile the Fortran.  This implies −f and −c. 

−v Don’t list intermediate file names while compiling. 

−C Preserve comments in output, and format esthetically (indentation, mostly). 

−6x Place continuation character in column 6, instead of non-standard convention used by fc(1).

Arguments whose names end with ‘.f’ are taken to be Fortran source programs; they are compiled in the normal manner.  (Only one Fortran routine is allowed in a ‘.f’ file.) 

Other arguments are taken to be either loader flag arguments, or Fortran-compatible object programs, typically produced by an earlier rc run, or perhaps libraries of Fortran-compatible routines.  These programs, together with the results of any compilations specified, are loaded to produce an executable program with name a.out. 

FILES

ratjunktemporary
/usr/fort/fc1Fortran compiler

SEE ALSO

B. W. Kernighan, RATFOR − A preprocessor for a Rational Fortran, Bell Laboratories CSTR #55, 1977.
fc(1) for Fortran flags and error messages
ld(1) for loader flags
f77(1) for the latest Fortran

DIAGNOSTICS

Yes, both from rc itself and from Fortran. 

BUGS

#define and #include lines in ‘.f’ files are not processed. 
fc(1) is unsupported.

7th Edition

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026