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