BSD 4_3_Net_2 release
[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.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\" notice, this list of conditions and the following disclaimer in the
11.\" documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\" must display the following acknowledgement:
14.\" This product includes software developed by the University of
15.\" California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\" may be used to endorse or promote products derived from this software
18.\" without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)px.1 6.7 (Berkeley) 5/9/91
33.\"
34.Dd May 9, 1991
35.Dt PX 1
36.Os BSD 3.0
37.Sh NAME
38.Nm \&px
39.Nd Pascal interpreter
40.Sh SYNOPSIS
41.Nm \&px
42.Op Ar obj Op Ar argument ...
43.Sh DESCRIPTION
44.Nm \&Px
45interprets the abstract machine code generated by
46.Xr pi 1 .
47The first argument is the file to be interpreted, and defaults
48to
49.Ar obj ;
50remaining arguments are available to the Pascal program using the
51built-ins
52.Ar argv
53and
54.Ar argc .
55.Nm \&Px
56is also invoked by
57.Nm pix
58when running `load and go'.
59.Pp
60If the program terminates abnormally an error message and a
61control flow backtrace are printed.
62The number of statements executed and total execution time
63are printed after normal termination.
64The
65.Cm p
66option of
67.Nm \&pi
68suppresses all of this except the message indicating the cause
69of abnormal termination.
70.Sh FILES
71.Bl -tag -width pmon.out -compact
72.It Pa obj
73default object file
74.It Pa pmon.out
75profile data file
76.El
77.Sh SEE ALSO
78.Xr pi 1 ,
79.Xr pix 1
80.Rs
81.%T "Berkeley Pascal User's Manual"
82.Re
83.Sh DIAGNOSTICS
84Most run-time error messages are self-explanatory.
85Some of the more unusual ones are:
86.Bl -tag -width indent
87.It Reference to an inactive file
88A file other than
89.Ar input
90or
91.Ar output
92was used before a call to
93.Ar reset
94or
95.Ar rewrite .
96.It Statement count limit exceeded
97The limit of 500,000 executed statements
98(which prevents excessive looping or recursion)
99has been exceeded.
100.It Bad data found on integer read
101.It Bad data found on real read
102Usually, non-numeric input was found for a number.
103For reals, Pascal requires digits before and after the decimal
104point so that numbers like `.1' or `21.' evoke the second diagnostic.
105.It panic: Em Some message
106Indicates an internal inconsistency detected in
107.Nm \&px
108probably due to a Pascal system bug.
109.El
110.Sh HISTORY
111.Nm \&Px
112appeared in
113.Bx 3.0 .
114.Sh BUGS
115Post-mortem traceback is not limited;
116infinite recursion leads to almost infinite traceback.