1987-02-24 16:07:04 +00:00
|
|
|
.TH PC_PEM 6ACK
|
1984-11-26 15:56:57 +00:00
|
|
|
.ad
|
|
|
|
.SH NAME
|
|
|
|
pc_pem \- Pascal to EM compiler
|
|
|
|
.SH SYNOPSIS
|
1987-02-24 16:07:04 +00:00
|
|
|
~em/lib/pc_pem compact errors
|
1984-11-26 15:56:57 +00:00
|
|
|
.SH DESCRIPTION
|
|
|
|
Pem is a Pascal compiler producing compact EM assembly code.
|
|
|
|
The EM machine is described in [1].
|
|
|
|
The language Pascal is developed by N. Wirth and is described
|
|
|
|
in the "Pascal User Manual and Report" [2].
|
|
|
|
The compiler complies as much as possible with the ISO standard proposal [3].
|
|
|
|
The language features as processed by this compiler are described in
|
|
|
|
the Pascal reference manual [4].
|
|
|
|
Normally the compiler is called by means of the user interface program
|
|
|
|
\fIack\fP(I).
|
|
|
|
.PP
|
|
|
|
The first argument is the name of the file on which the produced
|
|
|
|
compact EM code is written.
|
|
|
|
The file is also used to pass the options to the compiler.
|
|
|
|
These options include the -{xxx} flags given to \fIack\fP(I)
|
|
|
|
and the size of Pascal objects, like pointers.
|
|
|
|
.PP
|
|
|
|
The second argument is the name of the error file.
|
|
|
|
For each error found by the compiler a record is appended to this file.
|
|
|
|
An error record contains several fields like error number, line number,
|
|
|
|
column number and error parameter (identifier name or label number etc.).
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.IP [1]
|
|
|
|
A.S. Tanenbaum, Hans van Staveren, Ed Keizer and Johan
|
|
|
|
Stevenson "Description of a machine architecture for use with
|
|
|
|
block structured languages" Informatica report IR-81.
|
|
|
|
.IP [2]
|
|
|
|
K.Jensen & N.Wirth
|
|
|
|
"PASCAL, User Manual and Report" Springer-Verlag.
|
|
|
|
.IP [3]
|
|
|
|
An improved version of the ISO standard proposal for the language Pascal,
|
|
|
|
ISO/TC97/SC5-N462, received November 1979.
|
|
|
|
.IP [4]
|
|
|
|
J.W.Stevenson "The Amsterdam Compiler Kit Pascal reference manual".
|
|
|
|
.br
|
1987-02-24 16:07:04 +00:00
|
|
|
(try \fInroff ~em/doc/pcref.doc\fP)
|
1984-11-26 15:56:57 +00:00
|
|
|
.IP [5]
|
|
|
|
\fIack\fP(I)
|
|
|
|
.SH DIAGNOSTICS
|
|
|
|
Compilation errors are written to the error file.
|
|
|
|
Positive error numbers are used for irrecoverable errors, negative ones for warnings.
|
1987-02-24 16:07:04 +00:00
|
|
|
\fIAck\fP searches the file ~em/etc/pc_errors to find
|
1984-11-26 15:56:57 +00:00
|
|
|
the corresponding messages.
|
|
|
|
.SH AUTHOR
|
|
|
|
Johan Stevenson, Vrije Universiteit.
|