add .Vx so tmac.andoc will call tmac.mdoc-old
[unix-history] / usr / src / usr.bin / pascal / px / px.1
... / ...
CommitLineData
1.\" Copyright (c) 1980, 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\" @(#)px.1 6.5 (Berkeley) %G%
7.\"
8.Dd
9.Dt PX 1
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
18interprets the abstract machine code generated by
19.Xr pi 1 .
20The first argument is the file to be interpreted, and defaults
21to
22.Ar obj ;
23remaining arguments are available to the Pascal program using the
24built-ins
25.Ar argv
26and
27.Ar argc .
28.Nm Px
29is also invoked by
30.Nm pix
31when running `load and go'.
32.Pp
33If the program terminates abnormally an error message and a
34control flow backtrace are printed.
35The number of statements executed and total execution time
36are printed after normal termination.
37The
38.Cm p
39option of
40.Nm pi
41suppresses all of this except the message indicating the cause
42of abnormal termination.
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
53.br
54.Xr pi 1 ,
55.Xr pix 1
56.Sh DIAGNOSTICS
57Most run-time error messages are self-explanatory.
58Some of the more unusual ones are:
59.Tw Ds
60.Tp Reference to an inactive file
61A file other than
62.Ar input
63or
64.Ar output
65was used before a call to
66.Ar reset
67or
68.Ar rewrite .
69.Tp Statement count limit exceeded
70The limit of 500,000 executed statements
71(which prevents excessive looping or recursion)
72has been exceeded.
73.Tp Bad data found on integer read
74.Tp Bad data found on real read
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.
78.Tp panic:
79.Em Some message
80Indicates an internal inconsistency detected in
81.Nm px
82probably due to a Pascal system bug.
83.Tp
84.Sh AUTHORS
85Charles B. Haley, William Joy, and Ken Thompson
86.br
87VAX-11 version by Kirk McKusick
88.Sh HISTORY
89.Nm Px
90appeared in 3 BSD.
91.Sh BUGS
92Post-mortem traceback is not limited;
93infinite recursion leads to almost infinite traceback.