PC_PEM(VI)

NAME
pc_pem - Pascal to EM compiler

SYNOPSIS
/usr/em/lib/pc_pem compact errors

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 ack(I).

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 ack(I) and the size of Pascal objects, like pointers.

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

SEE ALSO

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

[2] K.Jensen & N.Wirth "PASCAL, User Manual and Report" Springer-Verlag.

[3] An improved version of the ISO standard proposal for the language Pascal, ISO/TC97/SC5-N462, received November 1979.

[4] J.W.Stevenson "The Amsterdam Compiler Kit Pascal reference manual".
    (try 'nroff /usr/em/doc/pcref.doc')

[5] ack(I)

DIAGNOSTICS
Compilation errors are written to the error file. Positive error numbers are used for irrecoverable errors, negative ones for warnings. Ack searches the file /usr/em/etc/pc_errors to find the corresponding messages.

AUTHOR
Johan Stevenson, Vrije Universiteit.