| 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 |
| 45 | interprets the abstract machine code generated by |
| 46 | .Xr pi 1 . |
| 47 | The first argument is the file to be interpreted, and defaults |
| 48 | to |
| 49 | .Ar obj ; |
| 50 | remaining arguments are available to the Pascal program using the |
| 51 | built-ins |
| 52 | .Ar argv |
| 53 | and |
| 54 | .Ar argc . |
| 55 | .Nm \&Px |
| 56 | is also invoked by |
| 57 | .Nm pix |
| 58 | when running `load and go'. |
| 59 | .Pp |
| 60 | If the program terminates abnormally an error message and a |
| 61 | control flow backtrace are printed. |
| 62 | The number of statements executed and total execution time |
| 63 | are printed after normal termination. |
| 64 | The |
| 65 | .Cm p |
| 66 | option of |
| 67 | .Nm \&pi |
| 68 | suppresses all of this except the message indicating the cause |
| 69 | of abnormal termination. |
| 70 | .Sh FILES |
| 71 | .Bl -tag -width pmon.out -compact |
| 72 | .It Pa obj |
| 73 | default object file |
| 74 | .It Pa pmon.out |
| 75 | profile 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 |
| 84 | Most run-time error messages are self-explanatory. |
| 85 | Some of the more unusual ones are: |
| 86 | .Bl -tag -width indent |
| 87 | .It Reference to an inactive file |
| 88 | A file other than |
| 89 | .Ar input |
| 90 | or |
| 91 | .Ar output |
| 92 | was used before a call to |
| 93 | .Ar reset |
| 94 | or |
| 95 | .Ar rewrite . |
| 96 | .It Statement count limit exceeded |
| 97 | The limit of 500,000 executed statements |
| 98 | (which prevents excessive looping or recursion) |
| 99 | has been exceeded. |
| 100 | .It Bad data found on integer read |
| 101 | .It Bad data found on real read |
| 102 | Usually, non-numeric input was found for a number. |
| 103 | For reals, Pascal requires digits before and after the decimal |
| 104 | point so that numbers like `.1' or `21.' evoke the second diagnostic. |
| 105 | .It panic: Em Some message |
| 106 | Indicates an internal inconsistency detected in |
| 107 | .Nm \&px |
| 108 | probably due to a Pascal system bug. |
| 109 | .El |
| 110 | .Sh HISTORY |
| 111 | .Nm \&Px |
| 112 | appeared in |
| 113 | .Bx 3.0 . |
| 114 | .Sh BUGS |
| 115 | Post-mortem traceback is not limited; |
| 116 | infinite recursion leads to almost infinite traceback. |