Teaching compiler code generation: simpler is better

  • Authors:
  • William Mahoney;Jay Pedersen

  • Affiliations:
  • University of Nebraska at Omaha, Omaha, Nebraska;University of Nebraska at Omaha, Omaha, Nebraska

  • Venue:
  • ACM SIGCSE Bulletin
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

The code generation portion of a compiler is still typically constructed by hand in an ad-hoc manner. When teaching a compiler construction class, the code generation phase can occupy a large portion of a one semester project. To address this, we have created an extremely small instruction set simulator which is easily learned in a short period of time. We've termed this a RRISC (Really Reduced Instruction Set Computer) and have been using it successfully for several years.