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 PPC64le #18

Open
Richard-Rogalski opened this issue May 7, 2023 · 3 comments
Open

Support for PPC64le #18

Richard-Rogalski opened this issue May 7, 2023 · 3 comments

Comments

@Richard-Rogalski
Copy link

Richard-Rogalski commented May 7, 2023

Hello!

I'd like to get this working on PPC64. I tried getting something going, but all I get is this:

error[E0658]: inline assembly is not stable yet on this architecture
error: `clobber_abi` is not supported on this target

Looking at the loong PR, there's a way to to use the unstable inline assembly, but what about this clobber_abi thing? This has "only clobbers" under ppc, which makes me think it should work?

Also, would endianness matter here? I mostly want support for PPC64le, but would the same code work for PPC64(be)?

Thanks for any help!!

@Amanieu
Copy link
Owner

Amanieu commented May 7, 2023

clobber_abi is optional, it's just a way to avoid listing all possible registers as clobbers. However it would be nice to have support for it added in the Rust compiler. As you can see in rust-lang/rust#111237, it's not too difficult.

Endianness does not matter here. For example, the ARM/AArch64 code works fine in either endianess.

@rheaplex
Copy link

@Richard-Rogalski heya did you get any further with this? 😺

@ky438
Copy link

ky438 commented May 26, 2024

@Amanieu - this issue seems outstanding; I just ran into this with an attempted build of coronsense 0.1.3 on ppc64le (Ubuntu 22.04 LTS on POWER9)

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

No branches or pull requests

4 participants