Skip to content

Commit 2d85307

Browse files
committed
Translate untranslated lines in asm.md
1 parent 9de6d34 commit 2d85307

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/unsafe/asm.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,11 +723,21 @@ This example shows a few things:
723723
[local labels]: https://sourceware.org/binutils/docs/as/Symbol-Names.html#Local-Labels
724724
[an LLVM bug]: https://bugs.llvm.org/show_bug.cgi?id=36144
725725

726+
<!--
726727
## Options
728+
-->
729+
## オプション
727730

731+
<!--
728732
By default, an inline assembly block is treated the same way as an external FFI function call with a custom calling convention: it may read/write memory, have observable side effects, etc. However, in many cases it is desirable to give the compiler more information about what the assembly code is actually doing so that it can optimize better.
733+
-->
734+
デフォルトでは、インラインアセンブリブロックは、カスタム呼び出し規約をもつ外部のFFI関数呼び出しと同じように扱われます: メモリを読み込んだり書き込んだり、観測可能な副作用を持っていたりするかもしれません。
735+
しかし、多くの場合、アセンブリコードが実際に何をするかという情報を多く与えて、より最適化できる方が望ましいでしょう。
729736

737+
<!--
730738
Let's take our previous example of an `add` instruction:
739+
-->
740+
先ほどの`add`命令の例を見てみましょう:
731741

732742
```rust
733743
# #[cfg(target_arch = "x86_64")] {

0 commit comments

Comments
 (0)