Skip to content

Commit 4980063

Browse files
committed
Translate untranslated lines in asm.md
1 parent ba44d8e commit 4980063

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/unsafe/asm.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,13 +565,27 @@ fn call_foo(arg: i32) -> i32 {
565565
# }
566566
```
567567

568+
<!--
568569
## Register template modifiers
570+
-->
571+
レジスタテンプレート修飾子
569572

573+
<!--
570574
In some cases, fine control is needed over the way a register name is formatted when inserted into the template string. This is needed when an architecture's assembly language has several names for the same register, each typically being a "view" over a subset of the register (e.g. the low 32 bits of a 64-bit register).
575+
-->
576+
テンプレート文字列に挿入されるレジスタの名前のフォーマット方法について、細かい制御が必要な場合があります。
577+
アーキテクチャのアセンブリ言語が、同じレジスタに別名を持っている場合です。
578+
典型的な例としては、レジスタの部分集合に対する"ビュー"があります(例:64ビットレジスタの下位32ビット)。
571579

580+
<!--
572581
By default the compiler will always choose the name that refers to the full register size (e.g. `rax` on x86-64, `eax` on x86, etc).
582+
-->
583+
デフォルトでは、コンパイラは常に完全なレジスタサイズの名前を選択します(例:x86-64では`rax`、x86では`eax`、など)。
573584

585+
<!--
574586
This default can be overridden by using modifiers on the template string operands, just like you would with format strings:
587+
-->
588+
この挙動は、フォーマット文字列と同じように、テンプレート文字列のオペランドに修飾子を利用することで上書きできます。
575589

576590
```rust
577591
# #[cfg(target_arch = "x86_64")] {

0 commit comments

Comments
 (0)