This folder contains the following:

- A simple empty compiler project consisting of:
	- [lex.l grammar.y main.c] An empty lexical analyser and grammar, and a
	  simple main function that links them together.
	- [list.[ch] salloc.[ch]] Utility code.
	- [suffixed.[ch]] Lists of instructions where special handling is required
	  because of operand size suffixes.
	- [Makefile] A Makefile to be used for compiling the compiler, and creating
	  a submit.tgz for submitting the compiler.

- [check1.sh check2.sh] Scripts that automate the process of checking whether
  your translator/optimizer produces correct output for a given input file.
  check1.sh can be used for assignment 1, check2.sh for assignment 2.

- [documentation2.tex] A documentation template for Assignment 2. Use
    pdflatex documentation2.tex
  to create a PDF file.

- [samples/*.s] Sample code from the Panoramix compiler, to find optimization
  possibilities. Use the check2.sh script to correctly compile these. If a
  .in file is given, that is used as input for the program with the same name.

- [libcb] The runtime library for the .s files in the samples directory. This
  will be automatically compiled by the check2.sh script.
