Commit | Line | Data |
---|---|---|
b5dc1377 CL |
1 | .\" Copyright (c) 1980, 1990 The Regents of the University of California. |
2 | .\" All rights reserved. | |
8970a365 | 3 | .\" |
b5dc1377 | 4 | .\" %sccs.include.redist.man% |
8970a365 | 5 | .\" |
d0719240 | 6 | .\" @(#)px.1 6.5 (Berkeley) %G% |
b5dc1377 CL |
7 | .\" |
8 | .Dd | |
9 | .Dt PX 1 | |
b5dc1377 CL |
10 | .Sh NAME |
11 | .Nm px | |
12 | .Nd Pascal interpreter | |
13 | .Sh SYNOPSIS | |
14 | .Nm px | |
15 | .Op Ar obj Op Ar argument ... | |
16 | .Sh DESCRIPTION | |
17 | .Nm Px | |
8970a365 | 18 | interprets the abstract machine code generated by |
b5dc1377 | 19 | .Xr pi 1 . |
8970a365 KM |
20 | The first argument is the file to be interpreted, and defaults |
21 | to | |
b5dc1377 | 22 | .Ar obj ; |
8970a365 KM |
23 | remaining arguments are available to the Pascal program using the |
24 | built-ins | |
b5dc1377 | 25 | .Ar argv |
8970a365 | 26 | and |
b5dc1377 CL |
27 | .Ar argc . |
28 | .Nm Px | |
8970a365 | 29 | is also invoked by |
b5dc1377 | 30 | .Nm pix |
8970a365 | 31 | when running `load and go'. |
b5dc1377 CL |
32 | .Pp |
33 | If the program terminates abnormally an error message and a | |
8970a365 KM |
34 | control flow backtrace are printed. |
35 | The number of statements executed and total execution time | |
36 | are printed after normal termination. | |
37 | The | |
b5dc1377 | 38 | .Cm p |
8970a365 | 39 | option of |
b5dc1377 | 40 | .Nm pi |
8970a365 KM |
41 | suppresses all of this except the message indicating the cause |
42 | of abnormal termination. | |
b5dc1377 CL |
43 | .Sh FILES |
44 | .Dw pmon.out | |
45 | .Di L | |
46 | .Dp Pa obj | |
47 | default object file | |
48 | .Dp Pa pmon.out | |
49 | profile data file | |
50 | .Dp | |
51 | .Sh SEE ALSO | |
52 | .Em Berkeley Pascal User's Manual | |
8970a365 | 53 | .br |
b5dc1377 CL |
54 | .Xr pi 1 , |
55 | .Xr pix 1 | |
56 | .Sh DIAGNOSTICS | |
8970a365 KM |
57 | Most run-time error messages are self-explanatory. |
58 | Some of the more unusual ones are: | |
b5dc1377 CL |
59 | .Tw Ds |
60 | .Tp Reference to an inactive file | |
8970a365 | 61 | A file other than |
b5dc1377 | 62 | .Ar input |
8970a365 | 63 | or |
b5dc1377 | 64 | .Ar output |
8970a365 | 65 | was used before a call to |
b5dc1377 | 66 | .Ar reset |
8970a365 | 67 | or |
b5dc1377 CL |
68 | .Ar rewrite . |
69 | .Tp Statement count limit exceeded | |
8970a365 KM |
70 | The limit of 500,000 executed statements |
71 | (which prevents excessive looping or recursion) | |
72 | has been exceeded. | |
b5dc1377 CL |
73 | .Tp Bad data found on integer read |
74 | .Tp Bad data found on real read | |
8970a365 KM |
75 | Usually, non-numeric input was found for a number. |
76 | For reals, Pascal requires digits before and after the decimal | |
77 | point so that numbers like `.1' or `21.' evoke the second diagnostic. | |
b5dc1377 CL |
78 | .Tp panic: |
79 | .Em Some message | |
c33a908d | 80 | Indicates an internal inconsistency detected in |
b5dc1377 | 81 | .Nm px |
8970a365 | 82 | probably due to a Pascal system bug. |
b5dc1377 CL |
83 | .Tp |
84 | .Sh AUTHORS | |
8970a365 KM |
85 | Charles B. Haley, William Joy, and Ken Thompson |
86 | .br | |
87 | VAX-11 version by Kirk McKusick | |
b5dc1377 CL |
88 | .Sh HISTORY |
89 | .Nm Px | |
90 | appeared in 3 BSD. | |
91 | .Sh BUGS | |
8970a365 KM |
92 | Post-mortem traceback is not limited; |
93 | infinite recursion leads to almost infinite traceback. |