unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: guix-devel@gnu.org
Cc: Cayetano Santos <csantosb@inventati.org>
Subject: Possible path to bootstrap GNAT, the Ada compiler
Date: Tue, 15 Oct 2024 17:38:23 +0200	[thread overview]
Message-ID: <87a5f5xtow.fsf@gnu.org> (raw)

Hello there,

Recently, Alexandre Oliva kindly sent me this message, which I’m
forwarding with his permission:

> The other day, we talked on the Fediverse about bootstrapping GNAT in
> Guix, and I wasn't aware of any way to accomplish that.  I've had
> occasion to talk to some AdaCore old-timers this week and learned about
> two paths:
> 
> SETL is the older one.  It was the environment used to get GNAT from the
> ground up.  I'm pretty sure I've seen mentions thereof in Guix
> discussions already, so I'll assume you already knew about it.
> 
> The one that may be more promising for now, but that I'm not sure solves
> the problem at all, is CCG.
> https://docs.adacore.com/live/wave/gnat_ccg/html/gnatccg_ug/gnat_ccg/gnat_ccg.html
> 
> IIUC, it's GNAT-llvm with the backend set to generate C code.  So, with
> a preexisting CCG, one could (presumably) translate GNAT to C, verify
> the translation as much as desired, and use the result to build a
> bootstrapping compiler, that could then be used as a starting point to
> build recent and future versions of GNAT.

Food for thought!

Ludo’.


                 reply	other threads:[~2024-10-15 15:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a5f5xtow.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=csantosb@inventati.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).