Wayup Pascal Compiler
by Andy McLaughlin (andy@visopsys.org)


Wayup ("Why Are You Using Pascal?") is a nearly-complete level 0 Pascal compiler that I wrote in 1997/98 as a class project at the University of Calgary.  It translates Pascal source code into SPARC assembly code, which means that the executables that it generates should only be used on Sun (and compatible) architectures.

Wayup version 0.1 is distributed in source code form under the terms of the GNU General Public Licence.  This means that it is both "open-source" software, and "free" software.  If you're not sure what this implies, please look at a copy of the license here before downloading, or read the file COPYING.TXT in the distribution.

To build Wayup, you will need a UNIX system (preferably Solaris 2.x, but you can also build it under Linux), with the GNU CC ("gcc") or similar compiler capable of building C++ code.  For more information, see the file BUILDING.TXT.

Wayup is  not fully-featured enough for Pascal programmers to use on serious projects.   I'm honestly not sure why anyone would want this (and that's not meant to be a slight to the Pascal language :).   It will not be very useful to anybody, except possibly those interested in compiler development.  Even for those people, I don't know if this product is an example you'd want to follow (although I got a very nice grade on it).  Besides the fact that I devoted 8 months of my life to this project, I guess I figured releasing this code might be more potentially useful to the world than having it hiding on my hard disk.  Please don't judge my programming skills by this code.  I was young and naive.

Download Wayup v0.1 source code (approx. 100K)
zip file: wayup-0.1.zip ; or
gzip-compressed tar file: wayup-0.1.tar.gz
(Go ahead, it's free. If you like it, just let me know!)

Back to Andy's personal page
Back to Visopsys.org