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.
- Aho, A. V. 2008. Teaching the compilers course. inroads -- ACM SIGCSE Bulletin, 40(4): 6--8. Google ScholarDigital Library
- Baldwin, D. 2003. A compiler for teaching about compilers. inroads -- ACM SIGCSE Bulletin, 35(1): 220--223. Google ScholarDigital Library
- Elsworth, E. F. 1992. The MSL compiler writing project. ACM SIGCSE Bulletin, 24(2): 41--44. Google ScholarDigital Library
- Henry, T. R. 2005. Teaching compiler construction using a domain specifi c language. inroads -- ACM SIGCSE Bulletin, 37(1): 7--11. Google ScholarDigital Library
- Mahoney, W. and Pedersen, J. 2009. Teaching compiler code generation -- Simpler is better. inroads -- ACM SIGCSE Bulletin, 41(4): 30--34. Google ScholarDigital Library
- Elsworth, E. F. 1979. Compilation via an intermediate language. The Computer Journal, 22(3): 226--233.Google ScholarCross Ref
- Chakraborty, P. 2009. Design and implementation of a cross compiler. Journal of Multidisciplinary Engineering Technologies, 3(2): 6--15.Google Scholar
- Chakraborty, P. 2008. Use of heuristics in shift-reduce parsers. Proceedings of the International Conference on Data Management, pp. 103--109.Google Scholar
- 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 Scholar
- Chakraborty, P. 2007. A language for easy and effi cient modeling of Turing machines. Progress in Natural Science, 17(7): 867--871.Google ScholarCross Ref
- de Oliveira Guimaraes, J. 2007. Learning compiler construction by examples. inroads -- ACM SIGCSE Bulletin, 39(4): 70--74. Google ScholarDigital Library
Index Terms
- Teaching purpose compilers: an exercise and its feedback
Recommendations
A compiler for teaching about compilers
SIGCSE '03: Proceedings of the 34th SIGCSE technical symposium on Computer science educationProjects in which students write a small compiler are common in compiler design courses, but even a small compiler can be daunting to students with no prior compiler-writing experience. When I recently taught compiler design, I developed a very small ...
Teaching compiler construction using a domain specific language
SIGCSE '05: Proceedings of the 36th SIGCSE technical symposium on Computer science educationBuilding a compiler for a domain specific language (a language designed for a specific problem domain) can engage students more than traditional compiler course projects. Most students feel that compiler courses are irrelevant because they are not ...
Teaching compiler construction and language design: making the case for unusual compiler projects with postscript as the target language
SIGCSE '07: Proceedings of the 38th SIGCSE technical symposium on Computer science educationThis paper presents an unusual programming language, textttklx, illustrating the type of compiler construction projects the author uses successfully to accompany a mostly traditional lecture on compilers.The target processor of textttklx is the ...
Comments