Re: Modern compilers for ye olde architectures

"Luke A. Guest" <laguest@archeia.com>
Wed, 6 Oct 2021 16:20:53 +0100

          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)
Re: Modern compilers for ye olde architectures gah4@u.washington.edu (gah4) (2021-10-21)
[2 later articles]
| List of all articles for this month |

From: "Luke A. Guest" <laguest@archeia.com>
Newsgroups: comp.compilers
Date: Wed, 6 Oct 2021 16:20:53 +0100
Organization: Aioe.org NNTP Server
References: 21-10-007 21-10-013
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="52514"; mail-complaints-to="abuse@iecc.com"
Keywords: architecture, history, LLVM
Posted-Date: 06 Oct 2021 12:01:38 EDT

On 06/10/2021 10:36, Theo wrote:
> 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.


That is long dead and cannot be merged into a newer branch, they made a
complete mess of the source tree there. That is pre llvm-3.


> 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


Ok, just looked and seems there has been something done recently, last I
looked it was dead and ancient.


Post a followup to this message

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