Re: Modern compilers for ye olde architectures

Theo <theom+news@chiark.greenend.org.uk>
06 Oct 2021 10:36:29 +0100 (BST)

          From comp.compilers

Related articles
Modern compilers for ye olde architectures laguest@archeia.com (Luke A. Guest) (2021-10-05)
Re: Modern compilers for ye olde architectures david.brown@hesbynett.no (David Brown) (2021-10-05)
Re: Modern compilers for ye olde architectures DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2021-10-05)
Re: Modern compilers for ye olde architectures derek@NOSPAM-knosof.co.uk (Derek Jones) (2021-10-06)
Re: Modern compilers for ye olde architectures laguest@archeia.com (Luke A. Guest) (2021-10-06)
Re: Modern compilers for ye olde architectures anton@mips.complang.tuwien.ac.at (2021-10-06)
Re: Modern compilers for ye olde architectures theom+news@chiark.greenend.org.uk (Theo) (2021-10-06)
Re: Modern compilers for ye olde architectures laguest@archeia.com (Luke A. Guest) (2021-10-06)
Re: Modern compilers for ye olde architectures pkk@spth.de (Philipp Klaus Krause) (2021-10-06)
Re: Modern compilers for ye olde architectures anton@mips.complang.tuwien.ac.at (2021-10-15)
Re: Modern compilers for ye olde architectures pkk@spth.de (Philipp Klaus Krause) (2021-10-18)
Re: Modern compilers for ye olde architectures pkk@spth.de (Philipp Klaus Krause) (2021-10-18)
Re: Modern compilers for ye olde architectures pkk@spth.de (Philipp Klaus Krause) (2021-10-18)
[3 later articles]
| List of all articles for this month |
From: Theo <theom+news@chiark.greenend.org.uk>
Newsgroups: comp.compilers
Date: 06 Oct 2021 10:36:29 +0100 (BST)
Organization: University of Cambridge, England
References: 21-10-007
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="44639"; mail-complaints-to="abuse@iecc.com"
Keywords: architecture, history
Posted-Date: 06 Oct 2021 11:05:31 EDT

Luke A. Guest <laguest@archeia.com> wrote:
> I have a Z80 project in mind and would like to build a compiler for a
> Z80. I was wondering if modern backend techniques can be applied
> successfully for these old CPU's, i.e. SSA.
>
> I know GCC has backends for some older architectures, but these do weird
> gymnastics such as implementing a virtual cpu in rtl and then lowering
> further.


There is, it seems, an LLVM backend for Z80:
https://github.com/jacobly0/llvm-project
(see the 'z80' branch)
It appears TI calculators are the main use case.


I don't know the current status/functionality, but it would be fun to see
what the various LLVM passes do to the generated code.


It seems like there's been some work done on Rust for Z80 (and 6502):
https://github.com/jacobly0/llvm-project/issues/15


Theo


Post a followup to this message

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