Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative backend #10629

Closed
lu-zero opened this issue Nov 24, 2013 · 3 comments
Closed

Alternative backend #10629

lu-zero opened this issue Nov 24, 2013 · 3 comments
Labels
A-codegen Area: Code generation E-hard Call for participation: Hard difficulty. Experience needed to fix: A lot.

Comments

@lu-zero
Copy link
Contributor

lu-zero commented Nov 24, 2013

Libfirm is a sort of leaner and smaller llvm, written in C and with almost no dependencies.

Might be good to implement another backend to ensure genericity.

@thestinger
Copy link
Contributor

I'm not sure that this is in the scope of the official Rust project. If someone actually did the work of writing this, making the backend pluggable would make sense.

@emberian
Copy link
Member

firm only supports x86 and SPARC, with a more limited set of optimizations. Would be fairly interesting, though, to have trans be pluggable. Not going to be easy to use a different backend, we lean on LLVM quite heavily.

@thestinger
Copy link
Contributor

I can't see this happening as part of the official compiler. I don't think the extra maintenance involved would be acceptable, and it would bring the usual problem of forcing the limitations of the lowest common denominator on everyone. It belongs in a third party repository, and specific changes making it easier to maintain could possibly be dealt with here.

flip1995 pushed a commit to flip1995/rust that referenced this issue Apr 23, 2023
…Jarcho

Fix UB in `as_ptr_cast_mut` documentation

changelog: none

Fixes rust-lang#10628

There's no `String::as_mut_ptr` surprisingly, so the example is actually calling `str::as_mut_ptr` on an empty `str`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation E-hard Call for participation: Hard difficulty. Experience needed to fix: A lot.
Projects
None yet
Development

No branches or pull requests

3 participants