Design of a compiler construction project

  • Authors:
  • Dave Pitts

  • Affiliations:
  • Merrimack College

  • Venue:
  • Journal of Computing Sciences in Colleges
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

This is a description of a compiler project: a compiler for Mini-P, a substantial subset of Pascal. My goal was that the students implement a compiler that generates code executable under the Linux operating system, not a simulated processor. The project introduced the students to a number of standard programming and development tools. Generating code for a real instruction set rather than an idealized simulated processor is complex. In this paper, I describe how I structured a project that provided a reasonable challenge to the students. My primary goal was that the project introduces the students to translation techniques, but avoids swamping the students with unnecessary details. While no student implemented all of the features of Mini-P, each student was able to a substantial number of features.