Commit | Line | Data |
---|---|---|
39fcfcc8 DR |
1 | .pa 1 |
2 | .he 'FC (I)'9/1/72'FC (I)' | |
3 | .ti 0 | |
4 | NAME fc -- fortran compiler | |
5 | .sp | |
6 | .ti 0 | |
7 | SYNOPSIS fc\b\b__ [ -c\b\b__ ] sfile\d1\u.f\b\b__ ... ofile\d1\u ... | |
8 | .sp | |
9 | .ti 0 | |
10 | DESCRIPTION fc\b\b__ | |
11 | is the UNIX Fortran compiler. | |
12 | It accepts three types of arguments: | |
13 | ||
14 | Arguments whose names end with ".f" are assumed to be | |
15 | Fortran source program units; they are compiled, and | |
16 | the object program is left on the file sfile\d1\u.o (i.e. | |
17 | the file whose name is that of the source with ".o" substituted | |
18 | for ".f"). | |
19 | ||
20 | Other arguments (except for "-c") are assumed | |
21 | to be either loader flags, or | |
22 | object programs, typically produced by an earlier fc\b\b__ run, | |
23 | or perhaps libraries of Fortran-compatible routines. | |
24 | These programs, together with the results of any | |
25 | compilations specified, are loaded (in the order | |
26 | given) to produce an executable program with name | |
27 | a.out\b\b\b\b\b_____. | |
28 | ||
29 | The "-c" argument suppresses the loading phase, as does | |
30 | any syntax error in any of the routines being compiled. | |
31 | ||
32 | The following is a list | |
33 | of differences between fc\b\b__ | |
34 | and ANSI standard Fortran (also see the BUGS section): | |
35 | .sp | |
36 | .in +3 | |
37 | .ti -3 | |
38 | 1. Arbitrary combination of types is allowed | |
39 | in expressions. Not all combinations are expected to | |
40 | be supported at runtime. | |
41 | All of the normal | |
42 | conversions involving integer, real, double | |
43 | precision and complex are allowed. | |
44 | .sp | |
45 | .ti -3 | |
46 | 2. The 'standard' implicit statement is recognized. | |
47 | .sp | |
48 | .ti -3 | |
49 | 3. The types | |
50 | doublecomplex, logical*1, | |
51 | integer*2 and real*8 (doubleprecision) | |
52 | are supported. | |
53 | .sp | |
54 | .ti -3 | |
55 | 4. &\b_ as the first character of a line | |
56 | signals a continuation card. | |
57 | .sp | |
58 | .ti -3 | |
59 | 5. c\b_ as the first character of a line signals a comment. | |
60 | .sp | |
61 | .ti -3 | |
62 | 6. All keywords are recognized in lower case. | |
63 | .sp | |
64 | .ti -3 | |
65 | 7. The notion of 'column 7' is not implemented. | |
66 | ||
67 | .ti -3 | |
68 | 8. G-format input is free form-- | |
69 | leading blanks are ignored, the first blank after the start | |
70 | of the number terminates the field. | |
71 | ||
72 | .ti -3 | |
73 | 9. A comma in any numeric or logical input field terminates | |
74 | the field. | |
75 | ||
76 | .ti -4 | |
77 | 10. There is no carriage control on output. | |
78 | .sp | |
79 | .in -3 | |
80 | In I/O statements, only unit numbers 0-19 are supported. | |
81 | Unit number nn\b\b__ corresponds to file "fortnn\b\b__;" | |
82 | (e.g. unit 9 is file "fort09"). | |
83 | For input, the file must exist; | |
84 | for output, it will be created. | |
85 | ||
86 | Unit 5 is permanently associated with | |
87 | the standard input file; unit 6 with the | |
88 | standard output file. | |
89 | .sp | |
90 | .ti 0 | |
91 | FILES file.f input file | |
92 | .nf | |
93 | a.out loaded output | |
94 | f.tmp[123] temporary (deleted) | |
95 | /usr/fort/fc[1234] compilation phases | |
96 | /usr/lib/fr0.o runtime startoff | |
97 | /usr/lib/filib.a interpreter library | |
98 | /usr/lib/libf.a builtin functions, etc. | |
99 | /usr/lib/liba.a system library | |
100 | .fi | |
101 | .sp | |
102 | .ti 0 | |
103 | SEE ALSO ANSI standard | |
104 | .sp | |
105 | .ti 0 | |
106 | DIAGNOSTICS Compile-time diagnostics | |
107 | are given by number. | |
108 | If the source code is available, it is | |
109 | printed with an underline at the current | |
110 | character pointer. | |
111 | Errors possible are: | |
112 | ||
113 | .in +8 | |
114 | .ti -8 | |
115 | 1 statement too long | |
116 | .ti -8 | |
117 | 2 syntax error in type statement | |
118 | .ti -8 | |
119 | 3 redeclaration | |
120 | .ti -8 | |
121 | 4 missing ( in array declarator | |
122 | .ti -8 | |
123 | 5 syntax error in dimension statement | |
124 | .ti -8 | |
125 | 6 inappropriate or gratuitous array declarator | |
126 | .ti -8 | |
127 | 7 syntax error in subscript bound | |
128 | .ti -8 | |
129 | 8 illegal character | |
130 | .ti -8 | |
131 | 9 common variable is a parameter or already in common | |
132 | .ti -8 | |
133 | 10 common syntax error | |
134 | .ti -8 | |
135 | 11 subroutine/blockdata/function not first statement | |
136 | .ti -8 | |
137 | 12 subroutine/function syntax error | |
138 | .ti -8 | |
139 | 13 block data syntax error | |
140 | .ti -8 | |
141 | 14 redeclaration in external | |
142 | .ti -8 | |
143 | 15 external syntax error | |
144 | .ti -8 | |
145 | 16 implicit syntax error | |
146 | .ti -8 | |
147 | 17 subscript on non-array | |
148 | .ti -8 | |
149 | 18 incorrect subscript count | |
150 | .ti -8 | |
151 | 19 subscript out of range | |
152 | .ti -8 | |
153 | 20 subscript syntax error | |
154 | .ti -8 | |
155 | 22 DATA syntax error | |
156 | .ti -8 | |
157 | 23 Illegal variable in DATA | |
158 | .ti -8 | |
159 | 23 equivalence inconsistency | |
160 | .ti -8 | |
161 | 24 equivalence syntax error | |
162 | .ti -8 | |
163 | 25 separate common blocks equivalenced | |
164 | .ti -8 | |
165 | 26 common block illegally extended by equivalence | |
166 | .ti -8 | |
167 | 27 common inconsistency created by equivalence | |
168 | .ti -8 | |
169 | 28 DATA table overflow | |
170 | .ti -8 | |
171 | 29 () imbalance in expression | |
172 | .ti -8 | |
173 | 30 expression syntax error | |
174 | .ti -8 | |
175 | 31 illegal variable in equivalence | |
176 | .ti -8 | |
177 | 32 Storage initialized twice by DATA | |
178 | .ti -8 | |
179 | 33 non array/function used with subscripts/arguments | |
180 | .ti -8 | |
181 | 35 goto syntax error | |
182 | .ti -8 | |
183 | 37 illegal return | |
184 | .ti -8 | |
185 | 38 continue, return, stop, call, end, or pause syntax error | |
186 | .ti -8 | |
187 | 39 assign syntax error | |
188 | .ti -8 | |
189 | 40 if syntax error | |
190 | .ti -8 | |
191 | 41 I/O syntax error | |
192 | .ti -8 | |
193 | 42 do or I/O iteration error | |
194 | .ti -8 | |
195 | 43 do end missing | |
196 | .ti -8 | |
197 | 50 illegal statement in block data | |
198 | .ti -8 | |
199 | 51 multiply defined labels | |
200 | .ti -8 | |
201 | 52 undefined label | |
202 | .ti -8 | |
203 | 53 dimension mismatch | |
204 | .ti -8 | |
205 | 54 expression syntax error | |
206 | .ti -8 | |
207 | 55 end of statement in hollerith constant | |
208 | .ti -8 | |
209 | 56 array too large | |
210 | .ti -8 | |
211 | 99 \ eB\ f table overflow | |
212 | .ti -8 | |
213 | 101 unrecognized statement | |
214 | .ti -8 | |
215 | ||
216 | .ti -8 | |
217 | Runtime diagnostics: | |
218 | .ti -8 | |
219 | ||
220 | .ti -8 | |
221 | 1 invalid log argument | |
222 | .ti -8 | |
223 | 2 bad arg count to amod | |
224 | .ti -8 | |
225 | 3 bad arg count to atan2 | |
226 | .ti -8 | |
227 | 4 excessive argument to cabs | |
228 | .ti -8 | |
229 | 5 exp too large in cexp | |
230 | .ti -8 | |
231 | 6 bad arg count to cmplx | |
232 | .ti -8 | |
233 | 7 bad arg count to dim | |
234 | .ti -8 | |
235 | 8 excessive argument to exp | |
236 | .ti -8 | |
237 | 9 bad arg count to idim | |
238 | .ti -8 | |
239 | 10 bad arg count to isign | |
240 | .ti -8 | |
241 | 11 bad arg count to mod | |
242 | .ti -8 | |
243 | 12 bad arg count to sign | |
244 | .ti -8 | |
245 | 13 illegal argument to sqrt | |
246 | .ti -8 | |
247 | 14 assigned/computed goto out of range | |
248 | .ti -8 | |
249 | 15 subscript out of range | |
250 | .ti -8 | |
251 | 16 real**real overflow | |
252 | ||
253 | .ti -8 | |
254 | 100 illegal I/O unit number | |
255 | .ti -8 | |
256 | 101 inconsistent use of I/O unit | |
257 | .ti -8 | |
258 | 102 cannot create output file | |
259 | .ti -8 | |
260 | 103 cannot open input file | |
261 | .ti -8 | |
262 | 104 EOF on input file | |
263 | .ti -8 | |
264 | 105 illegal character in format | |
265 | .ti -8 | |
266 | 106 format does not begin with ( | |
267 | .ti -8 | |
268 | 107 no conversion in format but non-empty list | |
269 | .ti -8 | |
270 | 108 excessive parenthesis depth in format | |
271 | .ti -8 | |
272 | 109 illegal format specification | |
273 | .ti -8 | |
274 | 110 illegal character in input field | |
275 | .ti -8 | |
276 | 111 end of format in hollerith specification | |
277 | .ti -8 | |
278 | 999 unimplemented input conversion | |
279 | .sp | |
280 | .in -8 | |
281 | .ti 0 | |
282 | BUGS The following is a list of | |
283 | those features not yet implemented: | |
284 | .sp | |
285 | .br | |
286 | arithmetic statement functions | |
287 | ||
288 | backspace, endfile, rewind runtime | |
289 | ||
290 | binary I/O | |
291 | ||
292 | no scale factors on input |