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

Support for Moxie Virtual CPU #55647

Open
adrianbrink opened this issue Nov 3, 2018 · 5 comments
Open

Support for Moxie Virtual CPU #55647

adrianbrink opened this issue Nov 3, 2018 · 5 comments
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. C-feature-request Category: A feature request, i.e: not implemented / a PR. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@adrianbrink
Copy link

adrianbrink commented Nov 3, 2018

I would like to build a project that runs on the Moxie Virtual CPU which runs a PowerPC. Moxie has a complete GNU toolchain for C/C++ development. Furthermore there is already a target powerpc-unknown-linux-gnu which seems applicable to this situation.

My question is whether rust already supports Moxie and how I would go about using it.

@adrianbrink
Copy link
Author

I think the correct target triple would be moxie-unknown-elf.

Source

@jonas-schievink
Copy link
Contributor

There doesn't seem to be an LLVM backend, so you'd have to write one first, or use a different rustc backend once they're ready. Could also try out mrustc.

@adrianbrink
Copy link
Author

How does one go about writing a new backend for rust? Also is there a backend for Risk-V?

@nagisa
Copy link
Member

nagisa commented Nov 3, 2018

Implementing a Rust backend is trivial once a LLVM backend exists. RISC-V backend in LLVM, while experimental, exists. Documentation on how to implement an LLVM backend is here.

@memoryruins
Copy link
Contributor

re: RISC-V backend

@jonas-schievink jonas-schievink added the C-feature-request Category: A feature request, i.e: not implemented / a PR. label Jan 27, 2019
@jonas-schievink jonas-schievink added the A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. label Nov 9, 2019
@Noratrieb Noratrieb added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. C-feature-request Category: A feature request, i.e: not implemented / a PR. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

5 participants