From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f44.google.com (mail-io1-f44.google.com [209.85.166.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C3A270 for ; Tue, 6 Jul 2021 18:36:55 +0000 (UTC) Received: by mail-io1-f44.google.com with SMTP id h190so4102085iof.12 for ; Tue, 06 Jul 2021 11:36:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0xyx0pklQR+95zKxEndiU06jX1kO2TXkLillzRG+x6g=; b=WKVN+Khstry4enrloSSi2BBRzF2tR5jswElXvuEvkJAFhOqHoozseTCtQIRApzr2rC Hurx1lBH/auX6G9z/wTAU+oTem87ghmsEVAYinARpLF0yZOAEOMHuvc30CdjYdJBQSKl MolnbTjM2lSeJ5pOaBeaOxE4YmVOLpM1eer/IsU40erAir8Zj30LTXuYVMx9WXRH/72f znLUE72BVbiykyID0+80XKPXN5qAErwhdMfo5GYBh+IqDt7VVaoPQdm6GOW9bhEEWAMI EqqDyzmgu8GD6pd6ns0IMEpUrU8ywcL0MxyUTCFRKA69She2VeWYEXimDJhhYLjEFbho EuOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0xyx0pklQR+95zKxEndiU06jX1kO2TXkLillzRG+x6g=; b=kC1Vxy+5zqgrEe0EzTFGEYS88ewunrjGbdqyA95/hwU698GwnFM5zkPrtZcvNqi827 YnLCsqey2KSkdRzpfqSnwy2nb9pD4kjz41BVbogJOBbyeMPeRRXfDCqtdHa59a6OWv8V t7dGdcZUdhiPIDOrqnJVaCKN6xt00Nti0ObKmi0S/Gmj+CKuPPQOWWWbKnzT9RPIITxB 7TQqzEONW1TLEeJarAnDp6JEBVZ4NOgkLOX65VPZINFU8h2Iy9aQKpQS8j4bUwJJxq8r aGyN8gv7eF9G8+b1rVmAqKoW798qjgNzt/iM4AGYzFI65M4tg20PISZSNYGn+8jZnXPJ 86eA== X-Gm-Message-State: AOAM531llSNMbRCU8EydvMkL0f50d4h8ldNBOBXrZxbSrqpX6sFt3yZ/ WCyMqySMiqFsOnHZqum6vLHVzUnzXJMEnY613AwCRam+6j1rig== X-Google-Smtp-Source: ABdhPJwpTQNeoTqf+fwPxWXOBCQY0eWUxrqEuxY3T/U1t4InrMBr7DTNJcvah8OQzTSkens1hCwQ0hSM9mWUnAz1S1Y= X-Received: by 2002:a6b:185:: with SMTP id 127mr9473053iob.64.1625596614548; Tue, 06 Jul 2021 11:36:54 -0700 (PDT) Precedence: bulk X-Mailing-List: ksummit@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Miguel Ojeda Date: Tue, 6 Jul 2021 20:36:43 +0200 Message-ID: Subject: Re: [TECH TOPIC] Rust for Linux To: Linus Walleij Cc: Geert Uytterhoeven , Leon Romanovsky , ksummit@lists.linux.dev Content-Type: text/plain; charset="UTF-8" On Tue, Jul 6, 2021 at 8:00 PM Linus Walleij wrote: > > I brought this up for discussion with Miguel et al and it turns out > the project to develop a GCC front-end for Rust is now well under > way and there is already a frankencompiler using LLVM first > and then feeding that into GCC IIUC. By the latter, I think you are referring to `rustc_codegen_gcc` -- in that case, a quick note: it does not involve LLVM. `rustc` has its own set of IRs which then gets translated into LLVM IR (in the most common backend), but in the case of `rustc_codegen_gcc` it gets translated into something libgccjit can consume. There is also a third backend in the works, called cranelift, for different use cases. So `rustc_codegen_gcc` is basically a very quick way of supporting the entirety of the Rust language (exactly as `rustc` supports it) but having a GCC codegen path. Cheers, Miguel