File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Generally this should not be necessary, but might be where the required performa
10
10
cannot be otherwise achieved. Accessing low level hardware primitives, e.g. in kernel code, may also demand this functionality.
11
11
-->
12
12
Rustは` asm! ` マクロによってインラインアセンブリをサポートしています。
13
- コンパイラによって生成されるアセンブリに 、手書きのアセンブリを埋め込むことができます。
13
+ コンパイラが生成するアセンブリに 、手書きのアセンブリを埋め込むことができます。
14
14
一般的には必要ありませんが、要求されるパフォーマンスやタイミングを達成するために必要な場合があります。
15
15
カーネルコードのような、低レベルなハードウェアの基本要素にアクセスする場合にも、この機能が必要でしょう。
16
16
@@ -58,10 +58,10 @@ Note that all `asm!` invocations have to be inside an `unsafe` block, as they co
58
58
arbitrary instructions and break various invariants. The instructions to be inserted are listed
59
59
in the first argument of the `asm!` macro as a string literal.
60
60
-->
61
- これにより 、コンパイラが生成したアセンブリに、NOP (no operation) 命令が挿入されます 。
61
+ これは 、コンパイラが生成したアセンブリに、NOP (no operation) 命令を挿入します 。
62
62
すべての` asm! ` 呼び出しは、` unsafe ` ブロックの中になければいけません。
63
- というのも、 インラインアセンブリは任意の命令を挿入でき、本来不変のものを変更できてしまうからです。
64
- 挿入される命令は、` asm! ` マクロの引数として文字列リテラルとして列挙されます 。
63
+ インラインアセンブリは任意の命令を挿入でき、本来不変のものを変更できてしまうからです。
64
+ 挿入される命令は、文字列リテラルとして ` asm! ` マクロの第一引数に列挙されます 。
65
65
66
66
<!--
67
67
## Inputs and outputs
You can’t perform that action at this time.
0 commit comments