You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
86: feat: Use new asm! instead of llvm_asm! r=Disasm a=duskmoon314
The new `asm` macro has been merged into `nightly` for some time, while `llvm_asm` will be gradually deprecated and will not enter `stable`. This PR replaces `llvm_asm` with `asm`, but there are still some minor issues to discuss.
My reference are:
- [asm feature](https://doc.rust-lang.org/unstable-book/library-features/asm.html)
- [arch/cortex-m: change a few llvm_asm!s to asm!s](tock/tock#2092)
- [Convert all uses of llvm_asm! to asm!](rust-lang/stdarch#1052)
---
In the new `asm` feature, there are several options can set to optimize codes. [options](https://doc.rust-lang.org/unstable-book/library-features/asm.html#options-1)
However, I'm not quite sure which options to set. (Sort of newbie to asm in rust)
Co-authored-by: Campbell He <[email protected]>
0 commit comments