CM049 : Industrial Computing Project - PowerPoint PPT Presentation

1 / 9
About This Presentation
Title:

CM049 : Industrial Computing Project

Description:

Unlimited (almost) surgery sessions. Lots of individual work. Lots more ... If you're going to get a book this one is suitable : Crafting A Compiler With C ... – PowerPoint PPT presentation

Number of Views:23
Avg rating:3.0/5.0
Slides: 10
Provided by: CGDH
Category:

less

Transcript and Presenter's Notes

Title: CM049 : Industrial Computing Project


1
CM049 Industrial Computing Project
  • Dave Harrison
  • Office D202 Phone 3224
  • E-Mail D.A.Harrison_at_unn.ac.uk
  • WWW http//computing.unn.ac.uk/staff/cgdh1

2
CM049 CompilerWriting For Beginners
  • Dave Harrison
  • Office D202 Phone 3224
  • E-Mail D.A.Harrison_at_unn.ac.uk
  • WWW http//computing.unn.ac.uk/staff/cgdh1

3
Unit Overview
  • This unit is about software construction.
  • Phases 1 - 3 writing a (cross-)compiler for a
    reasonably simple language.
  • Host Jaguar.
  • Target M68Ks in real-time lab.
  • Programming language C.
  • In effect, ANSI C.
  • Source language C--
  • A subset of ANSII C.
  • Target language M68K assembly.

4
Unit Overview II
  • Phase 4 writing a parser for a very simple
    language.
  • Host Jaguar.
  • Target None.
  • Programming language Anything you like.
  • Provided that it runs on Jaguar.
  • Source language SCL
  • The Simple Calculator Language.
  • Target language None.

5
Unit Structure
  • Formally
  • 12 hours lectures.
  • 12 hours directed practical.
  • In practice
  • About 8 hours lectures.
  • Unlimited (almost) surgery sessions.
  • Lots of individual work.
  • Lots more individual work.

6
Unit Assessment
  • Phases 1 - 3 C--
  • Three 5 minute software demonstrations.
  • Phase 1 lexical analysis (10)
  • Phase 2 syntax analysis (20)
  • Phase 3 code generation (10)
  • Phase 4 SCL
  • Code printout.
  • Copy of code on floppy.
  • 60

7
Unit Assessment II
  • Marks awarded for
  • Functionality.
  • How much of C-- and SCL that your programs
    handle.
  • Good programming practice.
  • Comments, layout, variable names etc.
  • Declaring global variables will get you a 0.
  • Global constants are OK.

8
Textbooks
  • Dont really need a textbook. Ill tell you
    everything that you need to know.
  • If youre really interested this is the classic
    text
  • Compilers Principles, Techniques and Tools
  • Aho A.V., Sethi R. Ullman J.D.
  • Addison-Wesley 1986
  • Personally, I wouldnt touch it with a bargepole.
  • This is the best book (IMHO) but its out of
    print
  • Understanding and Writing Compilers
  • Bornat R.
  • MacMillan 1979

9
Textbooks II
  • If youre going to get a book this one is
    suitable
  • Crafting A Compiler With C
  • Fischer C.N. LeBlanc R.J.
  • Benjamin / Cummings Publishing Company 1991
  • This one might be interesting
  • Programming Language Processors In Java
  • Watt D.A. Brown R.F.
  • Pearson Education 2000
  • This is just a good book
  • 1066 And All That
  • Sellar W.C. Yeatman R.J.
  • Mandarin 1991
Write a Comment
User Comments (0)
About PowerShow.com