Quiz! Books and papers put away Hats off or brims turned - - PowerPoint PPT Presentation

quiz
SMART_READER_LITE
LIVE PREVIEW

Quiz! Books and papers put away Hats off or brims turned - - PowerPoint PPT Presentation

Quiz! Books and papers put away Hats off or brims turned backwards Piece of paper out - Name and Student ID on it Your work is your own - Eyes on your own paper - Protect your own paper - Turn your paper over when youre done


slide-1
SLIDE 1

Quiz!

  • Books and papers put away
  • Hats off or brims turned backwards
  • Piece of paper out
  • Name and Student ID on it
  • Your work is your own
  • Eyes on your own paper
  • Protect your own paper
  • Turn your paper over when you’re done
  • You have 10 minutes after explanation
  • Turn in papers on first pass by your aisle
slide-2
SLIDE 2

Quiz – Code Gen Bridging Concepts

Last week I introduced the idea of the Bridging Concept to help with compilation from a modern programming language to a modern computer architecture. Question: 1. Explain what a bridging concept is for compilation and why it is important. 2. What is the base + offset bridging concept, and what difficulty does it help resolve in compilation. 3. Give an example of the application of the base +

  • ffset bridging concept.

You can answer these in any order and cross- reference, but please number them properly.

slide-3
SLIDE 3

Project 2 – Code Generation

  • Now will generate assembler that will

execute

  • A subset of Oberon from Project 1
  • No reals, no FOR loop, …
  • Project will be graded on:
  • a. running compiler on input Oberon programs
  • b. running generated assembler programs
  • c. comparing output with our expected output

your compiler your compiler cc cc grading program grading program foo.obe SPARC assembler SPARC executable execute execute input

slide-4
SLIDE 4

Project 2 Question Sharing

  • Turn to a neighbor and discuss something

about the Code Gen project

  • Then share with class
  • We’ll discuss