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

make this crate work on stable #11

Open
japaric opened this issue Feb 7, 2017 · 5 comments
Open

make this crate work on stable #11

japaric opened this issue Feb 7, 2017 · 5 comments

Comments

@japaric
Copy link
Owner

japaric commented Feb 7, 2017

Add a Cargo feature that moves the asm! blocks into assembly files (.s) that get built at compile time. The syscall! macro would then call those external functions via extern fn.

@lucab
Copy link

lucab commented Jun 9, 2017

Bump. I'd definitely love to have this crate available on stable, in order to get rid of a silly libc dependency just for syscall(2).

@vks
Copy link

vks commented Jul 28, 2020

This can now be implemented by moving to the recently stabilized asm! macro.

@japaric
Copy link
Owner Author

japaric commented Jul 28, 2020

This can now be implemented by moving to the recently stabilized asm! macro.

Happy to take a PR that does this when the feature gate has been removed in a beta release. Please do not open a PR before then.

@saethlin
Copy link

On nightly-2022-01-18 and later this crate no longer builds because llvm_asm! was removed in rust-lang/rust#92816. And asm! is available on beta since 2022-01-13.

I might take a shot at a patch, but I'm quite terrible at inline assembly. If someone has any expertise with asm! please help.

@niluxv
Copy link

niluxv commented Jan 30, 2022

I did most of the platforms where the required changes are trivial in PR #33.

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

5 participants