Groups | Search | Server Info | Login | Register
Groups > comp.compilers > #3630
| Path | csiph.com!weretis.net!feeder9.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end |
|---|---|
| From | George Neuner <gneuner2@comcast.net> |
| Newsgroups | comp.compilers |
| Subject | Re: Paper: Developing a Modular Compiler for a Subset of a C-like Language |
| Date | Tue, 21 Jan 2025 19:54:45 -0500 |
| Organization | Compilers Central |
| Sender | news%iecc.com |
| Approved | comp.compilers@iecc.com |
| Message-ID | <25-01-023@comp.compilers> (permalink) |
| References | <25-01-004@comp.compilers> <25-01-010@comp.compilers> <25-01-012@comp.compilers> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Injection-Info | gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="5133"; mail-complaints-to="abuse@iecc.com" |
| Keywords | courses |
| Posted-Date | 23 Jan 2025 14:39:45 EST |
| X-submission-address | compilers@iecc.com |
| X-moderator-address | compilers-request@iecc.com |
| X-FAQ-and-archives | http://compilers.iecc.com |
| Xref | csiph.com comp.compilers:3630 |
Show key headers only | View raw
On Mon, 20 Jan 2025 08:38:42 -0300, Salvador Mirzo <smirzo@antartida.xyz> wrote: >antispam@fricas.org writes: > >> John R Levine <johnl@taugh.com> wrote: >>> The authors developed a compiler for a toy language targeting Raspberry Pi >>> using lex and yacc. Nothing very new but it shows how you build a >>> compiler incremntally expanding the source language. >>> >>> https://arxiv.org/abs/2501.04503 >> >> I am affraid that the best use of this paper is to forget it. >> On one hand presentation is very naive and their "final" >> compiler apparently does not handle things handled in ususal toy >> compilers. On the other hand their presentation has a lot of >> gaps and mistakes, so that a newbie is unlikely to be able to >> follow them. > >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.) >[Good question. There's the old Let's Build a Compiler which you can find >on my web site and some books. Alan Holub wrote a well known book but the >code in the book is incredibly buggy so I wouldn't recommend it. -John] The Racket lanaguage (which is a Scheme variant) has a framework called nanopass designed deliberately for teaching compilers. https://docs.racket-lang.org/nanopass/index.html I don't have URLs for papers (sorry!), but over the years, some groups have written about using nanopass in compiler courses. If Scheme(-like) is not to your liking, the ideas of nanopass have been adopted and implemented in some other languages. Search engines are your friend.
Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar
Paper: Developing a Modular Compiler for a Subset of a C-like Language John R Levine <johnl@taugh.com> - 2025-01-09 09:18 -0500
Re: Paper: Developing a Modular Compiler for a Subset of a C-like Language OrangeFish <OrangeFish@invalid.invalid> - 2025-01-11 09:15 -0500
Re: Paper: Developing a Modular Compiler for a Subset of a C-like Language OrangeFish <OrangeFish@invalid.invalid> - 2025-01-12 16:15 -0500
Re: Paper: Developing a Modular Compiler for a Subset of a C-like Language antispam@fricas.org - 2025-01-16 13:46 +0000
Re: Paper: Developing a Modular Compiler for a Subset of a C-like Language Salvador Mirzo <smirzo@antartida.xyz> - 2025-01-20 08:38 -0300
Re: Paper: Developing a Modular Compiler for a Subset of a C-like Language OrangeFish <OrangeFish@invalid.invalid> - 2025-01-20 11:17 -0500
Re: lecture notes on compilers, was Paper: Developing a Modular Compiler Fernando Magno Quintao Pereira <pronesto@gmail.com> - 2025-01-21 13:33 -0300
Re: Paper: Developing a Modular Compiler for a Subset of a C-like Language George Neuner <gneuner2@comcast.net> - 2025-01-21 19:44 -0500
Re: Paper: Developing a Modular Compiler for a Subset of a C-like Language OrangeFish <OrangeFish@invalid.invalid> - 2025-01-23 20:49 -0500
Re: Paper: Developing a Modular Compiler for a Subset of a C-like Language George Neuner <gneuner2@comcast.net> - 2025-01-25 19:07 -0500
Re: Paper: Developing a Modular Compiler for a Subset of a C-like Language Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-01-23 13:56 -0800
Re: Books on writing a compiler, was Paper: Developing a Modular Compiler antispam@fricas.org - 2025-01-21 12:01 +0000
Re: Books on writing a compiler, was Paper: Developing a Modular Compiler antispam@fricas.org - 2025-01-21 18:45 +0000
Re: Paper: Developing a Modular Compiler for a Subset of a C-like Language George Neuner <gneuner2@comcast.net> - 2025-01-21 19:54 -0500
Re: Paper: Developing a Modular Compiler for a Subset of a C-like Language Dmitri Volkov <dmitri.s.volkov@gmail.com> - 2025-01-23 15:54 -0500
csiph-web