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?

This page summarizes the projects mentioned and recommended in the original post on /r/rust

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

    Empowering everyone to build reliable and efficient software.

    A. Add your os to the ones under the sys folder and implement the needed types. The types here are internal os-specific versions of exposed std types. (you can go off of the implementations for the other oses and the documentation exposed type)

  2. SaaSHub

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

    SaaSHub logo
  3. gccrs

    GCC Front-End for Rust

    There's ongoing work on a Rust front-end for GCC (https://github.com/Rust-GCC/gccrs). Bit barebones right now -- ie, even core doesn't compile -- but there's funding, demand, and regular progress, so it'll only get better from there. Once gccrs can compile core, it should be ready to compile most of Rust, and thus if you've taught the calling conventions for C to GCC, you're golden.

  4. rustc_codegen_gcc

    libgccjit AOT codegen for rustc

    Alternatively, there's another initiative called codegen_gcc which is about using GCC as a backend for the rustc compiler. It's (much) more advanced in Rust support, but I am not sure how easy it would be to use a modified libgccjit from there.

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 am I writing a Rust compiler in C?

    4 projects | news.ycombinator.com | 25 Aug 2024
  • GCC 13 and the State of Gccrs

    3 projects | news.ycombinator.com | 24 Apr 2023
  • Is there any other language that has something crucial that Rust hasn't? Minus libraries.

    5 projects | /r/rust | 30 Dec 2021
  • Librsvg, Rust, and non-mainstream architectures

    5 projects | /r/rust | 26 Feb 2021
  • Rust Needs an Official Specification

    1 project | news.ycombinator.com | 12 Nov 2024

Did you know that Rust is
the 5th most popular programming language
based on number of references?