diff options
| author | bors <bors@rust-lang.org> | 2015-07-14 07:51:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-07-14 07:51:04 +0000 |
| commit | 5708b1a18a39b3730f9a1af905b049f1b3600da7 (patch) | |
| tree | 3f0d6e527068f29a5dc5d0c5109c13cf3e13c65f | |
| parent | 137a699cc3a03e90f9e2aa04a7b163e7776706db (diff) | |
| parent | 07132b499f6b149c54e117b9b60ba11bbb0ff72c (diff) | |
| download | rust-5708b1a18a39b3730f9a1af905b049f1b3600da7.tar.gz rust-5708b1a18a39b3730f9a1af905b049f1b3600da7.zip | |
Auto merge of #27016 - alexcrichton:inline-asm-docs, r=steveklabnik
Hot off the press, we've now got some nice documentation to link to in LLVM officially!
| -rw-r--r-- | src/doc/trpl/inline-assembly.md | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/doc/trpl/inline-assembly.md b/src/doc/trpl/inline-assembly.md index 4d9166d63bf..7659c4ff88d 100644 --- a/src/doc/trpl/inline-assembly.md +++ b/src/doc/trpl/inline-assembly.md @@ -103,7 +103,7 @@ fn main() { If you would like to use real operands in this position, however, you are required to put curly braces `{}` around the register that you want, and you are required to put the specific size of the -operand. This is useful for very low level programming, where +operand. This is useful for very low level programming, where which register you use is important: ```rust @@ -166,3 +166,12 @@ unsafe { println!("eax is currently {}", result); # } ``` + +## More Information + +The current implementation of the `asm!` macro is a direct binding to [LLVM's +inline assembler expressions][llvm-docs], so be sure to check out [their +documentation as well][llvm-docs] for more information about clobbers, +constraints, etc. + +[llvm-docs]: http://llvm.org/docs/LangRef.html#inline-assembler-expressions |
