Re: Paper: Developing a Modular Compiler for a Subset of a C-like Language

Salvador Mirzo <smirzo@antartida.xyz>
Mon, 20 Jan 2025 08:38:42 -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 OrangeFish@invalid.invalid (OrangeFish) (2025-01-11)
Re: Paper: Developing a Modular Compiler for a Subset of a C-like Language OrangeFish@invalid.invalid (OrangeFish) (2025-01-12)
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: Books on writing a compiler, was Paper: Developing a Modular Compiler antispam@fricas.org (2025-01-21)
Re: lecture notes on compilers, was Paper: Developing a Modular Compiler pronesto@gmail.com (Fernando Magno Quintao Pereira) (2025-01-21)
Re: Paper: Developing a Modular Compiler for a Subset of a C-like Language gneuner2@comcast.net (George Neuner) (2025-01-21)
Re: Paper: Developing a Modular Compiler for a Subset of a C-like Language gneuner2@comcast.net (George Neuner) (2025-01-21)
Re: Paper: Developing a Modular Compiler for a Subset of a C-like Language dmitri.s.volkov@gmail.com (Dmitri Volkov) (2025-01-23)
[3 later articles]
| List of all articles for this month |
From: Salvador Mirzo <smirzo@antartida.xyz>
Newsgroups: comp.compilers
Date: Mon, 20 Jan 2025 08:38:42 -0300
Organization: Compilers Central
References: 25-01-004 25-01-010
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="50023"; mail-complaints-to="abuse@iecc.com"
Keywords: code, books, comment
Posted-Date: 20 Jan 2025 10:27:46 EST

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]


Post a followup to this message

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