https://github.com/glacjay/tiger-c
Compiler practice written in C.
https://github.com/glacjay/tiger-c
Last synced: 7 months ago
JSON representation
Compiler practice written in C.
- Host: GitHub
- URL: https://github.com/glacjay/tiger-c
- Owner: glacjay
- Created: 2010-06-27T11:58:45.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2017-02-13T09:08:40.000Z (almost 9 years ago)
- Last Synced: 2024-11-09T23:02:28.127Z (about 1 year ago)
- Language: C
- Homepage: http://glacjay.is-a-geek.org/blog/
- Size: 68.4 KB
- Stars: 34
- Watchers: 8
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
- AwesomeCompiler - tiger-c
README
Purpose
=======
This project is my practice of the book "Modern Compiler Implementation in C".
Progress
========
Chapter 5 - Program 1: Frames
Augment ``semantic.c`` to allocate locations for local variables, and to keep
track of the nesting level. To keep things simple, assume every variable
escapes.
Implement the ``Translate`` module as ``translate.c``.
If you are compiling for the Sparc, implement the ``SparcFrame`` module
(matching frame.h) as ``frame-sparc.c``. If compiling for the MIPS, implement
MipsFrame, and so on.