-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Inline assembly #2873
Inline assembly #2873
Conversation
…(use inout instead)
``` | ||
|
||
Note that the `fn` or `static` item does not need to be public or `#[no_mangle]`: | ||
the compiler will automatically insert the appropriate mangled symbol name into the assembly code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add another note here re: rust-lang/rust#73911 that #[track_caller]
functions refer to an indirect shim?
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. The RFC will be merged soon. |
From [RFC 2873](rust-lang/rfcs#2873): > The existing `asm!` macro will be renamed to `llvm_asm!` to provide an easy way to maintain backwards-compatibility with existing code using inline asm.
Huzzah! The @rust-lang/lang team has decided to accept this RFC. You can follow along at the following places:
|
* Update inline assembly for x86 to support new syntax https://github.com/rust-lang/rfcs/blob/master/text/2843-llvm-asm.md rust-lang/rfcs#2873 * Add support for Arm
A redesigned
asm!
macro, with a path to stabilization.Rendered
Implementation PR
This thread is a continuation of #2850, which has grown rather large. All of the feedback from the previous thread has been incorporated in the RFC.