Live data from Hacker News

GCC Rust: GCC Front-End for Rust

github.com

1–10 of 179 posts

Re: GCC Rust: GCC Front-End for Rust

#3
from the readme :

> The developers of the project are keen “Rustaceans” with a desire to give back to the Rust community and to learn what GCC is capable of when it comes to a modern language.

So what's the answer right now ? How does GCC measures "against" rust ?

Re: GCC Rust: GCC Front-End for Rust

#5
I'm not sure if what I'm asking makes sense, but since it's written for a new backend, would the authors have to bootstrap it using a different toolchain? I guess what I'm asking is, could they use the LLVM Rust to build the GCC frontend or do they have to start all over with a different base language to get a first working version of a rust compiler?

Re: GCC Rust: GCC Front-End for Rust

#6

I'm not sure if what I'm asking makes sense, but since it's written for a new backend, would the authors have to bootstrap it using a different toolchain? I guess what I'm asking is, could they use the LLVM Rust to build the GCC frontend or do they have to start all over with a different base language to get a first working version of a rust compiler?

It's not written in rust; gcc is written in c. There is no bootstrapping involved.

Re: GCC Rust: GCC Front-End for Rust

#7

I'm not sure if what I'm asking makes sense, but since it's written for a new backend, would the authors have to bootstrap it using a different toolchain? I guess what I'm asking is, could they use the LLVM Rust to build the GCC frontend or do they have to start all over with a different base language to get a first working version of a rust compiler?

As far as I can tell, this is written in C++ like the rest of GCC, so they don't need a rust compiler to bootstrap.

Re: GCC Rust: GCC Front-End for Rust

#8
post #7

I'm not sure if what I'm asking makes sense, but since it's written for a new backend, would the authors have to bootstrap it using a different toolchain? I guess what I'm asking is, could they use the LLVM Rust to build the GCC frontend or do they have to start all over with a different base language to get a first working version of a rust compiler?

As far as I can tell, this is written in C++ like the rest of GCC, so they don't need a rust compiler to bootstrap.

I see, so it’s written in C++. Would it remain that way, though? AFAIK the LLVM Rust is, itself, written in Rust, right? I imagine that it would be a goal to do the same for gcc.

Re: GCC Rust: GCC Front-End for Rust

#9
post #6

I'm not sure if what I'm asking makes sense, but since it's written for a new backend, would the authors have to bootstrap it using a different toolchain? I guess what I'm asking is, could they use the LLVM Rust to build the GCC frontend or do they have to start all over with a different base language to get a first working version of a rust compiler?

It's not written in rust; gcc is written in c. There is no bootstrapping involved.

Do gcc languages - even low level ones - remain written in c?
Post reply on HN