lccc
Lightning Creations Compiler Frontend for various languages (by lccc-project)
rustc_codegen_cranelift
Cranelift based backend for rustc (by rust-lang)
Our great sponsors
lccc | rustc_codegen_cranelift | |
---|---|---|
2 | 44 | |
103 | 1,446 | |
1.0% | 5.5% | |
9.1 | 9.7 | |
5 days ago | about 4 hours ago | |
Rust | Rust | |
GNU General Public License v3.0 or later | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
lccc
Posts with mentions or reviews of lccc.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-10.
-
Any alternate Rust compilers?
Also on the list of compilers making progress is https://github.com/LightningCreations/lccc. It is also pure rust from top to bottom, with a completely custom intermediate architecture, call xlang.
-
Why I support GCC-rs
I'm not saying it doesn't have a legitimate reason for being low priority, I'm just saying that, with the capability of implementing a fix myself, I think it's reasonable to at least attempt to do so (and, I did, in fact, https://github.com/LightningCreations/lccc/blob/main/rust/libcore/src/any.rs, though this is pending on the relevent https://github.com/rust-lang/rust/issues/84391).
rustc_codegen_cranelift
Posts with mentions or reviews of rustc_codegen_cranelift.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-18.
-
Cranelift code generation comes to Rust
Windows is supported. See https://github.com/rust-lang/rustc_codegen_cranelift/issues/....
- What part of Rust compilation is the bottleneck?
-
A Guide to Undefined Behavior in C and C++
> When this happens, it seems like it'll be possible to get the LLVM bits out of the bootstrap process and lead to a fully self-hosted Rust.
What do you mean by "when this happens"? GP's point is that this has already happened: the Cranelift backend is feature-complete from the perspective of the language [0], except for inline assembly and unwinding on panic. It was merged into the upstream compiler in 2020 [1], and a compiler built with only the Cranelift backend is perfectly capable of building another compiler. LLVM hasn't been a necessary component of the Rust compiler for quite some time.
[0] https://github.com/bjorn3/rustc_codegen_cranelift
[1] https://github.com/rust-lang/rust/pull/77975
-
What are some stuff that Rust isn't good at?
Note that the Cranelift codegen will eventually become standard for debug builds to speed them up.
-
Rust port of B3 from WebKit, LLVM-like backend
Maybe one day we'll have rustc b3 backend like what they did with Cranelift
-
Any alternate Rust compilers?
Additionally, there is gcc codegen for rustc (https://github.com/rust-lang/rustc_codegen_gcc), which is not a compiler per se, but an alternative code generator, with more architectures supported and other nice things. It's also coming along, but there's still a lot of work to do there too. There's also Cranelift codegen (https://github.com/bjorn3/rustc_codegen_cranelift), which is designed to make debug builds faster, but this is not as exciting/useful as the other 2.
-
Capsules, reactive state, and HSR: Perseus v0.4.0 goes stable!
For the instant reloading, that's in Sycamore, so you should speak to its devs, but as for the alternative compiler backend, it's not my project, but it uses Cranelift and works pretty well! See https://github.com/bjorn3/rustc_codegen_cranelift for details.
- Security Engineer looking for ways to see if any of my tasks could slowly be ported to Rust or should I just stick with Python.
- Rust is now officially supported on some Infineon microcontrollers! (more to come later this year)
-
Improving Rust compile times to enable adoption of memory safety
The more immediate goal of "distribute the cranelift backend as a rustup component" has been making good progress and seems like it might happen relatively soon https://github.com/bjorn3/rustc_codegen_cranelift/milestone/...