Unverified Commit 5f386ef8 authored by bors[bot]'s avatar bors[bot] Committed by GitHub
Browse files

Merge #86

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](https://github.com/tock/tock/pull/2092)
- [Convert all uses of llvm_asm! to asm!](https://github.com/rust-lang/stdarch/pull/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: default avatarCampbell He <hkp18@mails.tsinghua.edu.cn>
parents 498924d0 523a54bd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment