Progress Report #26: rustc_codegen_gcc can now compile Rust for Linux! (blog.antoyo.xyz)
from antoyo@programming.dev to rust@programming.dev on 02 Oct 2023 00:20
https://programming.dev/post/3789042

We just accomplished two big milestones:

#rust

threaded - newest

snaggen@programming.dev on 02 Oct 2023 05:15 next collapse

Great to see that this moves forward in a steady pace. And being able to compile Rust for Linux seems like a nice milestone, especially since many objections initially against rust in the kernel was about GCC support.

robinm@programming.dev on 02 Oct 2023 07:02 next collapse

This is incredible. Congrats!

robinm@programming.dev on 02 Oct 2023 07:11 collapse

Now that you can compile and run tests, how performant are they compared to rustc+llvm? I know that thinLTO is not yet enable, and I guess a few other important optimisation, but I’m interested to know what we can already get.

antoyo@programming.dev on 02 Oct 2023 18:46 collapse

Do you mean the performance of the tests themselves? If so, how would you suggest that I measure this? By just comparing the execution time?

robinm@programming.dev on 03 Oct 2023 10:16 collapse

Yes exacly. And I assume that the test suite of all of those project are long enough to average the usual jitter of wall time mesurement.

What I’m hoping to see is if rust+llvm vs rustc+gcc binary speed are within a few percents or if there is a real difference between the two (I’m expected that we eventually reach the former once thinLTO and other optimisations are implemented).

And while doing so it could also be possible to measure the difference in max RSS.

antoyo@programming.dev on 03 Oct 2023 12:06 collapse

Good. I’ll attempt to do that for the next update.