4.3BSD-Reno/src/pgrm/pascal/px/px.1

Compare this file to the similar file:
Show the results in this format:

.\" Copyright (c) 1980, 1990 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms are permitted provided
.\" that: (1) source distributions retain this entire copyright notice and
.\" comment, and (2) distributions including binaries display the following
.\" acknowledgement:  ``This product includes software developed by the
.\" University of California, Berkeley and its contributors'' in the
.\" documentation or other materials provided with the distribution and in
.\" all advertising materials mentioning features or use of this software.
.\" Neither the name of the University nor the names of its contributors may
.\" be used to endorse or promote products derived from this software without
.\" specific prior written permission.
.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
.\"     @(#)px.1	6.4 (Berkeley) 6/26/90
.\"
.Dd June 26, 1990
.Dt PX 1
.Sh NAME
.Nm px
.Nd Pascal interpreter
.Sh SYNOPSIS
.Nm px
.Op  Ar obj Op Ar argument ...
.Sh DESCRIPTION
.Nm Px
interprets the abstract machine code generated by
.Xr pi 1 .
The first argument is the file to be interpreted, and defaults
to
.Ar obj ;
remaining arguments are available to the Pascal program using the
built-ins
.Ar argv
and
.Ar argc .
.Nm Px
is also invoked by
.Nm pix
when running `load and go'.
.Pp
If the program terminates abnormally an error message and a
control flow backtrace are printed.
The number of statements executed and total execution time
are printed after normal termination.
The
.Cm p
option of
.Nm pi
suppresses all of this except the message indicating the cause
of abnormal termination.
.Sh FILES
.Dw pmon.out
.Di L
.Dp Pa obj
default object file
.Dp Pa pmon.out
profile data file
.Dp
.Sh SEE ALSO
.Em Berkeley Pascal User's Manual
.br
.Xr pi 1 ,
.Xr pix 1
.Sh DIAGNOSTICS
Most run-time error messages are self-explanatory.
Some of the more unusual ones are:
.Tw Ds
.Tp Reference to an inactive file
A file other than
.Ar input
or
.Ar output
was used before a call to
.Ar reset
or
.Ar rewrite .
.Tp Statement count limit exceeded
The limit of 500,000 executed statements
(which prevents excessive looping or recursion)
has been exceeded.
.Tp Bad data found on integer read
.Tp Bad data found on real read
Usually, non-numeric input was found for a number.
For reals, Pascal requires digits before and after the decimal
point so that numbers like `.1' or `21.' evoke the second diagnostic.
.Tp panic:
.Em Some message
Indicates an internal inconsistency detected in
.Nm px
probably due to a Pascal system bug.
.Tp
.Sh AUTHORS
Charles B. Haley, William Joy, and Ken Thompson
.br
VAX-11 version by Kirk McKusick
.Sh HISTORY
.Nm Px
appeared in 3 BSD.
.Sh BUGS
Post-mortem traceback is not limited;
infinite recursion leads to almost infinite traceback.