Re: Portable Software

Thomas Koenig <tkoenig@netcologne.de>
Sat, 8 Apr 2023 18:25:06 -0000 (UTC)

          From comp.compilers

Related articles
[5 earlier articles]
Re: Portable Software DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2023-03-31)
Re: Portable Software anton@mips.complang.tuwien.ac.at (2023-04-02)
Re: Portable Software DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2023-04-05)
Re: Portable Software anton@mips.complang.tuwien.ac.at (2023-04-05)
Re: Portable Software 864-117-4973@kylheku.com (Kaz Kylheku) (2023-04-06)
Re: Portable Software DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2023-04-07)
Re: Portable Software tkoenig@netcologne.de (Thomas Koenig) (2023-04-08)
| List of all articles for this month |

From: Thomas Koenig <tkoenig@netcologne.de>
Newsgroups: comp.compilers
Date: Sat, 8 Apr 2023 18:25:06 -0000 (UTC)
Organization: news.netcologne.de
References: 23-03-001 23-03-017 23-03-022 23-03-029 23-03-032 23-03-042 23-04-005 23-04-006 23-04-007
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="72132"; mail-complaints-to="abuse@iecc.com"
Keywords: design, history, comment
Posted-Date: 08 Apr 2023 15:58:30 EDT

Anton Ertl <anton@mips.complang.tuwien.ac.at> schrieb:
> Most self-respecting languages have their compiler(s)
> implemented in the language itself, resulting in having to bootstrap.


This is a bit complicated for GCC and LLVM.


For both, the middle end (and back end) is implemented in C++,
so a C++ interface at class level is required, and that is a
bit daunting.


Examples: Gnat (GCC's Ada front end) is written in Ada, and its
Modula-2 front end is written in Modula-2. On the other hand,
the Fortran front end is written in C++ (well, mostly C with
C++ features hidden behind macros).


The very first Fortran compiler, of course, was written in
assembler.
[It was, but Fortran H, the 1960s optimizing compiler for S/360 was
written in Fortran with a few data structure extensions. -John]


Post a followup to this message

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