File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -620,11 +620,19 @@ If you use a smaller data type (e.g. `u16`) with an operand and forget to use te
620
620
より小さなデータ型(例:` u16 ` )をオペランドに利用し、テンプレート修飾子を使い忘れた場合、
621
621
コンパイラは警告を出力し、正しい修飾子を提案してくれます。
622
622
623
+ <!--
623
624
## Memory address operands
625
+ -->
626
+ ## メモリアドレスオペランド
624
627
628
+ <!--
625
629
Sometimes assembly instructions require operands passed via memory addresses/memory locations.
626
630
You have to manually use the memory address syntax specified by the target architecture.
627
631
For example, on x86/x86_64 using Intel assembly syntax, you should wrap inputs/outputs in `[]` to indicate they are memory operands:
632
+ -->
633
+ アセンブリ命令はオペランドがメモリアドレスやメモリロケーション経由で渡される必要なこともあります。
634
+ そのときは手動で、ターゲットのアーキテクチャによって指定されたメモリアドレスのシンタックスを利用しなくてはなりません。
635
+ 例えば、Intelのアセンブリシンタックスを使うx86/x86_64の場合、入出力を` [] ` で囲んで、メモリオペランドであることを示さなくてはなりません。
628
636
629
637
``` rust
630
638
# #[cfg(target_arch = " x86_64" )] {
You can’t perform that action at this time.
0 commit comments