skip to main content
research-article

Teaching purpose compilers: an exercise and its feedback

Published:01 June 2011Publication History
Skip Abstract Section

Abstract

This paper presents an exercise to teach fundamental compiler construction issues. Four simple compilers, in both source and executable forms, were distributed among the students. The students studied the source codes and the accompanying documents. They performed various experiments with the compilers that included modifying the source codes, reengineering phases and implementing new phases and utilities. The students were enthusiastic about the practical knowledge they gained from the exercise. More than fifty students undertook the exercise and the overall response was quite satisfactory.

References

  1. Aho, A. V. 2008. Teaching the compilers course. inroads -- ACM SIGCSE Bulletin, 40(4): 6--8. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Baldwin, D. 2003. A compiler for teaching about compilers. inroads -- ACM SIGCSE Bulletin, 35(1): 220--223. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Elsworth, E. F. 1992. The MSL compiler writing project. ACM SIGCSE Bulletin, 24(2): 41--44. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Henry, T. R. 2005. Teaching compiler construction using a domain specifi c language. inroads -- ACM SIGCSE Bulletin, 37(1): 7--11. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Mahoney, W. and Pedersen, J. 2009. Teaching compiler code generation -- Simpler is better. inroads -- ACM SIGCSE Bulletin, 41(4): 30--34. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Elsworth, E. F. 1979. Compilation via an intermediate language. The Computer Journal, 22(3): 226--233.Google ScholarGoogle ScholarCross RefCross Ref
  7. Chakraborty, P. 2009. Design and implementation of a cross compiler. Journal of Multidisciplinary Engineering Technologies, 3(2): 6--15.Google ScholarGoogle Scholar
  8. Chakraborty, P. 2008. Use of heuristics in shift-reduce parsers. Proceedings of the International Conference on Data Management, pp. 103--109.Google ScholarGoogle Scholar
  9. Chakraborty, P. and Gupta, R. G. 2008. A simple object oriented compiler. Proceedings of the National Conference on Information Technology and Competitive Dynamics, pp. 203--215.Google ScholarGoogle Scholar
  10. Chakraborty, P. 2007. A language for easy and effi cient modeling of Turing machines. Progress in Natural Science, 17(7): 867--871.Google ScholarGoogle ScholarCross RefCross Ref
  11. de Oliveira Guimaraes, J. 2007. Learning compiler construction by examples. inroads -- ACM SIGCSE Bulletin, 39(4): 70--74. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Teaching purpose compilers: an exercise and its feedback

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in

        Full Access

        • Published in

          cover image ACM Inroads
          ACM Inroads  Volume 2, Issue 2
          June 2011
          87 pages
          ISSN:2153-2184
          EISSN:2153-2192
          DOI:10.1145/1963533
          Issue’s Table of Contents

          Copyright © 2011 ACM

          Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 1 June 2011

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • research-article
          • Popular
          • Refereed

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader

        HTML Format

        View this article in HTML Format .

        View HTML Format