Re: lecture notes on compilers, was Paper: Developing a Modular Compiler

Fernando Magno Quintao Pereira <pronesto@gmail.com>
Tue, 21 Jan 2025 13:33:23 -0300

          From comp.compilers

Related articles
Paper: Developing a Modular Compiler for a Subset of a C-like Language johnl@taugh.com (John R Levine) (2025-01-09)
Re: Paper: Developing a Modular Compiler for a Subset of a C-like Language antispam@fricas.org (2025-01-16)
Re: Paper: Developing a Modular Compiler for a Subset of a C-like Language smirzo@antartida.xyz (Salvador Mirzo) (2025-01-20)
Re: Paper: Developing a Modular Compiler for a Subset of a C-like Language OrangeFish@invalid.invalid (OrangeFish) (2025-01-20)
Re: lecture notes on compilers, was Paper: Developing a Modular Compiler pronesto@gmail.com (Fernando Magno Quintao Pereira) (2025-01-21)
| List of all articles for this month |
From: Fernando Magno Quintao Pereira <pronesto@gmail.com>
Newsgroups: comp.compilers
Date: Tue, 21 Jan 2025 13:33:23 -0300
Organization: Compilers Central
References: 25-01-004 25-01-010 25-01-012 25-01-014
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="92044"; mail-complaints-to="abuse@iecc.com"
Keywords: courses
Posted-Date: 21 Jan 2025 16:17:13 EST
In-Reply-To: 25-01-014

Hi Salvador,


> Would you recommend an equivalent paper or book that addresses these
> short-comings but maintains the educational spirit of the paper? (It's
> okay if the architecture is not a popular one.)


I’ve recently made the lecture notes that I use in the Compiler
Construction course available in a book-like format. You can find the
PDF here: https://homepages.dcc.ufmg.br/~fernando/classes/dcc053/.


The table of contents is also available on that page. These lecture
notes primarily focus on constructing a compiler for a purely
functional subset of SML/NJ. Most chapters include links to supporting
code. However, the full compiler isn’t provided, as I use it as a
project assignment.


In this project, students develop the compiler in 15 steps, starting
with an interpreter for arithmetic expressions and culminating in a
RISC-V code generator for a language with anonymous functions (though
closure conversion isn’t required in the test cases).


Please note that it’s still a work in progress, and feedback is welcome.


Kind regards,


Fernando


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.