add .Vx so tmac.andoc will call tmac.mdoc-old
[unix-history] / usr / src / usr.bin / pascal / px / px.1
CommitLineData
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 18interprets the abstract machine code generated by
b5dc1377 19.Xr pi 1 .
8970a365
KM
20The first argument is the file to be interpreted, and defaults
21to
b5dc1377 22.Ar obj ;
8970a365
KM
23remaining arguments are available to the Pascal program using the
24built-ins
b5dc1377 25.Ar argv
8970a365 26and
b5dc1377
CL
27.Ar argc .
28.Nm Px
8970a365 29is also invoked by
b5dc1377 30.Nm pix
8970a365 31when running `load and go'.
b5dc1377
CL
32.Pp
33If the program terminates abnormally an error message and a
8970a365
KM
34control flow backtrace are printed.
35The number of statements executed and total execution time
36are printed after normal termination.
37The
b5dc1377 38.Cm p
8970a365 39option of
b5dc1377 40.Nm pi
8970a365
KM
41suppresses all of this except the message indicating the cause
42of abnormal termination.
b5dc1377
CL
43.Sh FILES
44.Dw pmon.out
45.Di L
46.Dp Pa obj
47default object file
48.Dp Pa pmon.out
49profile 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
57Most run-time error messages are self-explanatory.
58Some of the more unusual ones are:
b5dc1377
CL
59.Tw Ds
60.Tp Reference to an inactive file
8970a365 61A file other than
b5dc1377 62.Ar input
8970a365 63or
b5dc1377 64.Ar output
8970a365 65was used before a call to
b5dc1377 66.Ar reset
8970a365 67or
b5dc1377
CL
68.Ar rewrite .
69.Tp Statement count limit exceeded
8970a365
KM
70The limit of 500,000 executed statements
71(which prevents excessive looping or recursion)
72has been exceeded.
b5dc1377
CL
73.Tp Bad data found on integer read
74.Tp Bad data found on real read
8970a365
KM
75Usually, non-numeric input was found for a number.
76For reals, Pascal requires digits before and after the decimal
77point so that numbers like `.1' or `21.' evoke the second diagnostic.
b5dc1377
CL
78.Tp panic:
79.Em Some message
c33a908d 80Indicates an internal inconsistency detected in
b5dc1377 81.Nm px
8970a365 82probably due to a Pascal system bug.
b5dc1377
CL
83.Tp
84.Sh AUTHORS
8970a365
KM
85Charles B. Haley, William Joy, and Ken Thompson
86.br
87VAX-11 version by Kirk McKusick
b5dc1377
CL
88.Sh HISTORY
89.Nm Px
90appeared in 3 BSD.
91.Sh BUGS
8970a365
KM
92Post-mortem traceback is not limited;
93infinite recursion leads to almost infinite traceback.