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

Nightly? #3

Closed
Disasm opened this issue Oct 3, 2019 · 4 comments
Closed

Nightly? #3

Disasm opened this issue Oct 3, 2019 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@Disasm
Copy link

Disasm commented Oct 3, 2019

I believe it's possible to use stable rust together with riscv and riscv-rt crates. With the latest Rust release everything should work just fine.

@sgmarz
Copy link
Owner

sgmarz commented Oct 3, 2019

Hello, the issue I have with stable is that it doesn't like me using features, such as inline assembly or panic info messages.

@sgmarz sgmarz added the question Further information is requested label Oct 3, 2019
@sgmarz sgmarz self-assigned this Oct 3, 2019
@Disasm
Copy link
Author

Disasm commented Oct 3, 2019

For assembly you can use binary trick, which is widely used in the rust-embedded org. For already "implemented" instructions like wfi you can use riscv::asm::wfi(). With the latest Rust release it's even possible to inline such "pre-compiled" instructions with ThinLTO.

@sgmarz
Copy link
Owner

sgmarz commented Oct 3, 2019

I appreciate the help! I'm trying to make this more of a language learning experience, but eventually I will switch over to Rust's libraries and make heavy use of core and alloc. For now, I would like the "raw" experience. But, I would invite your help for the second half where we start cleaning up the code and force as much as possible into Rust.

Thanks again.

@Disasm
Copy link
Author

Disasm commented Oct 3, 2019

No problem, just wanted to make sure you do not miss something :) Maybe I will try to follow along with this project. Your setup is pretty interesting and easy to experiment with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants