Adding a Rust compiler front end to GCC

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. gccrs

    GCC Front-End for Rust

    Because there is often some confusion, note that there are two different projects in this space with different approaches.

    The project discussed in the video above is a new front end to GCC (written in C++, as is typical for GCC frontends) and is developed here: https://github.com/Rust-GCC/gccrs

    The other project involves plugging GCC's backend into the existing rustc frontend, and is developed here: https://github.com/rust-lang/rustc_codegen_gcc

    Both projects intend to eventually allow Rust code to make use of GCC. But they will likely appeal to different sets of users: the former project appeals to people invested in the GCC ecosystem who want to use Rust without installing a whole separate toolchain, and the latter to people invested in the Rust ecosystem who want to benefit from GCC's broader target support.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. rustc_codegen_gcc

    libgccjit AOT codegen for rustc

    Because there is often some confusion, note that there are two different projects in this space with different approaches.

    The project discussed in the video above is a new front end to GCC (written in C++, as is typical for GCC frontends) and is developed here: https://github.com/Rust-GCC/gccrs

    The other project involves plugging GCC's backend into the existing rustc frontend, and is developed here: https://github.com/rust-lang/rustc_codegen_gcc

    Both projects intend to eventually allow Rust code to make use of GCC. But they will likely appeal to different sets of users: the former project appeals to people invested in the GCC ecosystem who want to use Rust without installing a whole separate toolchain, and the latter to people invested in the Rust ecosystem who want to benefit from GCC's broader target support.

  4. mrustc

    Alternative rust compiler (re-implementation)

  5. rustc_codegen_cranelift

    Cranelift based backend for rustc

  6. polonius

    Defines the Rust borrow checker.

    As I understand it, Polonius is still intended to be the next version of the borrow checker.

    The repostory is here: https://github.com/rust-lang/polonius

    There doesn't seem to have been any meaningful development for well over a year.

    There is some very recent discussion on Zulip which makes it look like there are at least two or three people interested in actively working on it.

    https://rust-lang.zulipchat.com/#narrow/stream/186049-t-comp...

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Why do lifetimes need to be leaky?

    6 projects | /r/rust | 8 Dec 2023
  • GCC Rust Approved by GCC Steering Committee

    9 projects | news.ycombinator.com | 11 Jul 2022
  • Take your first steps with Rust

    11 projects | news.ycombinator.com | 18 Apr 2021
  • Why am I writing a Rust compiler in C?

    4 projects | news.ycombinator.com | 25 Aug 2024
  • How hard would it be to port the Rust toolchain to a new non-POSIX OS written in Rust and get it to host its own development? What would that process entail?

    3 projects | /r/rust | 5 Jul 2023