home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man1 / rc.1 < prev    next >
Encoding:
Text File  |  1975-06-26  |  2.1 KB  |  101 lines

  1. .th RC I 5/15/74
  2. .sh NAME
  3. rc \*- Ratfor compiler
  4. .sh SYNOPSIS
  5. .bd rc
  6. [
  7. .bd \*-c
  8. ] [
  9. .bd \*-r
  10. ] [
  11. .bd \*-f
  12. ] [
  13. .bd \*-v
  14. ] file ...
  15. .sh DESCRIPTION
  16. .it Rc
  17. invokes the Ratfor preprocessor on a set of Ratfor source files.
  18. It accepts three types of arguments:
  19. .s3
  20. Arguments whose names end with `.r' are taken to be
  21. Ratfor source programs; they are 
  22. preprocessed into Fortran and compiled.
  23. Each subroutine or function `name' is placed on a separate file
  24. .it name.f,
  25. and its object code is left on
  26. .it name.o.
  27. The main routine is on
  28. .it MAIN.f
  29. and
  30. .it MAIN.o;
  31. block data subprograms go on
  32. .it blockdata?.f
  33. and
  34. .it blockdata?.o.
  35. The files resulting from a `.r' file are
  36. loaded into a single object file
  37. .it file.o,
  38. and the intermediate object and Fortran files are removed.
  39. .s3
  40. The following flags are interpreted by
  41. .it rc.
  42. See
  43. .it "ld (I)"
  44. for load-time flags.
  45. .s3
  46. .lp +6 5
  47. \fB\*-c\fR    Suppresses the loading phase of the compilation,
  48. as does any error in anything.
  49. .s3
  50. .lp +6 5
  51. \fB\*-f\fR    Save Fortran intermediate files.
  52. This is primarily for debugging.
  53. .s3
  54. .lp +6 5
  55. \fB\*-r\fR    Ratfor only; don't try to compile the Fortran.
  56. This implies
  57. .bd \*-f
  58. and
  59. .bd \*-c.
  60. .s3
  61. .lp +6 5
  62. \fB\*-v\fR    Don't list intermediate file names while compiling.
  63. .i0
  64. .dt
  65. .s3
  66. Arguments whose names end with `.f' are taken to be
  67. Fortran source programs;
  68. they are compiled in the normal manner.
  69. (Only one Fortran routine is allowed in a `.f' file.)
  70. Other arguments
  71. are taken
  72. to be either loader flag arguments, or Fortran-compatible
  73. object programs, typically produced by an earlier
  74. .it rc
  75. run,
  76. or perhaps libraries of Fortran-compatible routines.
  77. These programs, together with the results of any
  78. compilations specified, are loaded
  79. to produce an executable program with name
  80. .bd a.out.
  81. .i0
  82. .sh FILES
  83. ratjunk        temporary
  84. .br
  85. /usr/bin/ratfor    preprocessor
  86. .br
  87. /usr/fort/fc1    Fortran compiler
  88. .sh "SEE ALSO"
  89. ``RATFOR \*- A Rational Fortran''.
  90. .br
  91. fc(I) for Fortran error messages.
  92. .sh DIAGNOSTICS
  93. Yes, both from
  94. .it rc
  95. itself and from Fortran.
  96. .sh BUGS
  97. Limit of about 50 arguments, 10 block data files.
  98. .s3
  99. #define and #include lines in
  100. ``.f'' files are not processed.
  101.