Compiler "COMPAS" from Pascal to "E97" and Intel codes


Idea and program realisation - E.A.Eremin.
Russian (русский язык) See also my new ComPas page.
(You can examine this applet source)

"COMPAS" (COMpiler from PAScal) - the compiler for educational aims. It is dedicated for learning the principles of translation from high level language Pascal to the codes of "E97" processor. "COMPAS" can help the teacher to explain many things: what is variable, it's type and value, how the main algorithmic structures are realized, what's the difference between parameter passing by reference or by value and etc.

"E97" handbook
E97 Handbook "COMPAS" translates your Pascal program into educational computer "E97" codes, which can be executed later.

"ComPas" handbook
ComPas Handbook

"COMPAS" works with INTEGER, CHAR and BOOLEAN types, allows to organize ARRAY of them. Conditional operator IF and all kinds of cycles (WHILE, REPEAT and FOR) are supported. You can also use PROCEDURE or FUNCTION with some limitations.

MS DOS version of "COMPAS" was ready first. It can be run by typing in the command line
comp_de filename.ext
where comp_de is the name of my program and filename.ext is a full name of the file with your Pascal program. The results of translation will be saved to filename.cod file.

Then there was much more comfortable Windows version. It has integrated environment, combining text editor and compiler, clear interface, an easy system of navigation between operators code and demonstrative tables of variables and constants. You really can explore, how compiler translates different programs.

New! Inspired by wide geography of my users, I wrote the third "COMPAS" version. It can translate into Intel processor code and even build standard stand-alone .COM-file, which you can run under MS DOS and Windows.

Two first version are free, v.3 is shareware.

Download last version from famous

Here you can download all versions of the program:

v.1: MS DOS (about 30K in zipped .EXE)
v.2: Windows (about 230K in zipped .EXE)
v.3: Windows, with Intel processor code (about 280K in zipped .EXE)


My E-mail: e_eremin@lycos.com

Thank You for visiting this page! Hope to meet soon!