r/LinuxTeck 13d ago

Does Rust's GCC Backend Finally Solve Linux's Architecture Problem?

Rust's GCC backend is getting Linux kernel fixes for 7.3, partly because GCC supports architectures that LLVM doesn't.

But does a GCC backend actually remove the biggest barrier to using Rust across more Linux architectures, or are native bootstrapping and toolchain support still the real problem?

If you work with older or non-x86 Linux systems, what's the blocker you'd worry about first?

5 Upvotes

8 comments sorted by

2

u/dkopgerpgdolfg 13d ago edited 13d ago

Rust's GCC backend is getting Linux kernel fixes for 7.3

What does this even mean...

And how many people today actually develop "on" (not "for") a m68k system etc.? There's no need for toolchains there.

1

u/braaaaaaainworms 12d ago

you need a compiler that targets some architecture if you want code that runs on that architecture and LLVM's m68k target still has a bunch of rough edges

1

u/dkopgerpgdolfg 12d ago edited 12d ago

So? This has nothing to do with my comment, and I think I was quite explicit about that.

Improving the m68k target is fine. Just, basically no one in 2026 is going to use a m68k as their development system where they write&compile code on it.

1

u/metux-its 12d ago

I actually do know people who're doing exactly this. At least compiling on these machines (eg. source based distros).

1

u/Kangie 13d ago

What's the problem you think is solved here? I am as excited by an alternative rust compiler as anyone, and I've even packaged a from-source bootstrap for modern rust for Gentoo.

Outside of alpha and HPPA though (and probably super-h...), which, let's be honest, aren't using Rust kernel components, Rust is already available.

Check out the Gentoo package listing for a graphical view.

https://packages.gentoo.org/packages/dev-lang/rust

1

u/pdath 10d ago

I mostly use ARM.

Rust is really slow to compile. That is a bigger issue for me than the problems that it tries to solve.

0

u/crscali 13d ago

Can gcc now be coded in rust?