Compilers I: Tutorial Exercises

    Compilers I: Tutorial Exercises

    Tutorial exercises for the compilers course can be found on-line here, in two forms:

    • HTML, i.e. in a convenient form for on-line browsing
    • Postscript, ie ready for you to print (the quality is somewhat better than if you just print the web pages).
    The on-line versions often include the sample solutions; obviously, use these only when you have made a serious attempt yourself.

    For on-line browsing (HTML):

    • Ex1-TurtleInterpreter

    • Ex2-CodeGenerationForStatements

    • Ex3-UnassessedCodeGenForFunctionCalls

    • Ex4-GraphColouring

    • Ex5-DataflowAnalysis

    • Ex5-PointsToAnalysis

    • Ex6-Supplementaries

    For printing (postscript):
    • Postscript/Ex1-TurtleInterpreter.ps.gz
    • Postscript/Ex2-CodeGenerationForStatements.ps.gz
    • Postscript/Ex3-UnassessedCodeGenForFunctionCalls.ps.gz
    • Postscript/Ex4-GraphColouring.ps.gz
    • Postscript/Ex5-DataflowAnalysis.ps.gz
    • Postscript/Ex5-PointsToAnalysis.ps.gz
    • Postscript/Ex6-Supplementaries.ps.gz