xref: /original-bsd/usr.bin/pascal/px/px.1 (revision 1a56dd2c)
Copyright (c) 1980 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.

@(#)px.1 6.2 (Berkeley) 05/12/86

PX 1 ""
C
NAME
px - Pascal interpreter
SYNOPSIS
px [ obj [ argument ... ] ]
DESCRIPTION
Px interprets the abstract machine code generated by pi. The first argument is the file to be interpreted, and defaults to obj \|; remaining arguments are available to the Pascal program using the built-ins argv and argc. Px is also invoked by pix when running `load and go'.

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 p option of pi suppresses all of this except the message indicating the cause of abnormal termination.

FILES
obj default object file

pmon.out profile data file

"SEE ALSO"
Berkeley Pascal User's Manual

pi(1), pix(1)

DIAGNOSTICS
Most run-time error messages are self-explanatory. Some of the more unusual ones are:

6 Reference to an inactive file

A file other than input or output was used before a call to reset or rewrite.

6 Statement count limit exceeded

The limit of 500,000 executed statements (which prevents excessive looping or recursion) has been exceeded.

6 Bad data found on integer read

.ns

6 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.

6 panic: "Some message"

Indicates an internal inconsistency detected in px probably due to a Pascal system bug.

AUTHORS
Charles B. Haley, William Joy, and Ken Thompson

VAX-11 version by Kirk McKusick

BUGS
Post-mortem traceback is not limited; infinite recursion leads to almost infinite traceback.