4 ms·
I notice you moved from asm! to llvm_asm! [0]. Since the commit message doesn't explain why, would you be able to do so here? (Purely for my own curiosity) [0
by KwanEsq 6y ago
I notice you moved from asm! to llvm_asm! [0]. Since the commit message doesn't explain why, would you be able to do so here? (Purely for my own curiosity)
[0] https://github.com/mcountryman/min-sized-rust-windows/commit/86ac67a46b6ffcc470a922c60d28bcbd7643e7ba https://github.com/mcountryman/min-sized-rust-windows/commit...
- cdirkx 6y agoThey are the same: asm! was replaced by llvm_asm! because it currently only supports llvm asm and the name might suggest otherwise [1]. A backend independant syntax for asm! was recently specified [2], but that will take some time to implement. [1] https://github.com/rust-lang/rfcs/pull/2843 https://github.com/rust-lang/rfcs/pull/2843 [2] https://github.com/rust-lang/rfcs/pull/2873 https://github.com/rust-lang/rfcs/pull/2873
- steveklabnik 6y agoThey are not the same, and the asm! version is already implemented; the RFC came with an implementation. That first PR moved the old asm to llvm_asm, and then the new asm was built after a period of time so folks could migrate their code to llvm_asm, as a temporary measure. This commit happened after that transition so this has to be from the new asm back to the transition version.
- cdirkx 6y agoOops, my bad, I was working with an outdated understanding of the situation. Thanks for correcting me.
- steveklabnik 6y agoNo problem :) It was a feature that had no changes for a long time, and now has had a bunch of improvements and is finally on a path to stable. It can be hard to keep up with things sometimes.
- mcountryman 6y agoI couldn't get it working and was familiar with the `llvm_asm!` syntax. Although, I may have to go back and switch it around again.