up

CSE 565 Compiler Construction, Oakland Univ. MI, September 1988

by Nasser M. Abbasi

June 3, 2014

Part of MSCS courses.

Graduate. Grade A-

Instructor

Dr Ronald J. Srodawa, Ph.D.  
Computer Science and Engineering Department  
142 DHE; (248) 370-2247; Fax: (248) 370-4625  
E-mail: srodawa@oakland.edu

Homepage http://www2.secs.oakland.edu/~srodawa/

Course description

Applied language Theory, Finite-State automaton(lexical analysis), Top-down analysis, Precedence parsers, LR(k)parsers, Intermediate representation symbol tables, run-time machine structure, object code generation, error recovery.

Project: Written a subset of Pascal to 8088 assembler compiler. Used Lex and Yacc.

Text book

Compiler construction: Theory and practice William A. Barrett, Rodney M. Bates, David A. Gustafson, John D. Couch

Science Research Associatesă(1986)

PIC

notes Lost all notes. Here is what I have

Function to find GCD (greatest common divisor)

test_gcd.c.txt

gcd.c.txt

build.sh.txt

Compiler for Subset Of Pascal For 8088

I wrote in VAX Pascal. Final report is

1.
final.docx MS word format
2.
final.pdf PDF format

BACKEND1.PAS.txt

This is example outputs of the compiler

ASSM.ASM.txt

ASSM.MAP.txt

ASSM.LST.txt

Project SNOBOL to PLI compiler

did I ever finish this?

This was a yacc program for parsing pascal program will generate parse tree at the end of the run and print it. Files are

1.
PASCAL.YAC.txt
2.
S.SNO.txt
3.
S5.SNO.txt
4.
TYPE.PAS.txt
5.
TEST.PAS.txt
6.
SNODRIVE.PAS.txt
7.
RUNTIME.PAS.txt
8.
READARRA.PAS.txt
9.
CP.PAS.txt
10.
COMPILE.PAS.txt
11.
TYPE2.PAS.txt
12.
RUNTIME1.PAS.txt
13.
PAS1.LEX.txt