Originally posted by jjkk
View Post
Announcement
Collapse
No announcement yet.
GCC Rust Compiler "gccrs" Sees ~900 New Patches Upstreamed For GCC 14
Collapse
X
-
Originally posted by cj.wijtmans View Post
because there is no linking in libgccjit. its a jit library... they are literally mutually exclusive.
- Likes 1
Comment
-
Originally posted by jjkk View Post
Because of official (to be honest, the only way) to install rust:
is pathetic and miserable.
Another prominent example is platformio.
Luckily at least on Linux distributions which come with rustup, there is no need to download shell scripts.
Just install the latest version of the compiler with your distribution's rustup command (see distributions listed below).
Or use the rust compiler which comes with your distribution if it fits your use case (e.g. Arch, Nix, Gentoo, OpenSUSE)Last edited by oleid; 18 January 2024, 02:36 AM.
Comment
-
Originally posted by darcagn View Postrustc using the GCC libgccjit codegen doesn't work cross-compiling to SuperH except with 3rd party patches that haven't worked in months.
But GCCRS works out of the box.
rustc_codegen_gcc lacks polish, gccrs lack basic functionality.
Comment
-
Originally posted by timofonic View PostDo they want to include Rust code inside GCC?
- Likes 1
Comment
-
Originally posted by darcagn View PostThere are targets that GCC supports that the official compiler doesn't support.Originally posted by vextium View PostMore hardware support. GCC supports much more targets than LLVM currently can.
Comment
-
Originally posted by ehansin View PostI get so confused about all of the various components here
rustc_codegen_gcc: Allows GCC to be used with rustc, and LLVM by extension (I think!) Not sure what direction things pass through, but sounds like ultimately you get the greater architectural coverage of GCC, generating bytecode (or something like that) than can then be consumed by rustc/LLVM. So you ultimate get to use the offical Rust compiler.
- Likes 1
Comment
-
Originally posted by cj.wijtmans View Postbecause there is no linking in libgccjit. its a jit library... they are literally mutually exclusive.
Comment
-
-
Originally posted by moltonel View PostFair point (even if cherry-picked).
Originally posted by moltonel View PostBig no. Gccrs doesn't even fully support string formatting yet, they've only recently managed to compile the standard hello world. And it's naive to think that gccrs will magically support of all the arches that the gcc codegen supports: there's work needed in the frontend, whether it's rustc or gccrs.
rustc_codegen_gcc lacks polish, gccrs lack basic functionality.
rustc_codegen_gcc doesn't build for me. That's not a slight or an insult, it's just a fact. I don't have a horse in this race, either way, if I can compile Rust to SuperH, I'm very happy, so if I wake up tomorrow and rustc_codegen_gcc works 100% then I'll use it. In fact, when I get time I might even try to solve the problem myself and contribute back. But in the mean time I've read many comments questioning why the project that works for me should exist when the project that doesn't work for me exists, so I give my opinion as probably one of the few in this thread who have actually tried to work with both gccrs and rustc_codegen_gcc.
If you bothered to quote my entire post (where I wrote "Of course GCCRS is way behind in features, it's still super early on for it unfortunately.") then we we actually agree on this.
Last edited by darcagn; 18 January 2024, 02:53 PM.
- Likes 2
Comment
Comment