Compare commits

..

1 Commits

Author SHA1 Message Date
FineFindus
57b67d06dc Merge 5c3adee95b into 8b341c96c1 2025-01-17 12:13:03 -03:00
8 changed files with 8 additions and 58 deletions

View File

@@ -197,12 +197,6 @@ rtl = true
For more information, see our post on [disabling SIMD](@/edition-2/posts/02-minimal-rust-kernel/disable-simd/index.md).
```json
"rustc-abi": "x86-softfloat"
```
As we want to use the `soft-float` feature, we also need to tell the Rust compiler `rustc` that we want to use the corresponding ABI. We can do that by setting the `rustc-abi` field to `x86-softfloat`.
#### کنار هم قرار دادن
فایل مشخصات هدف ما اکنون به این شکل است:
@@ -220,8 +214,7 @@ As we want to use the `soft-float` feature, we also need to tell the Rust compil
"linker": "rust-lld",
"panic-strategy": "abort",
"disable-redzone": true,
"features": "-mmx,-sse,+soft-float",
"rustc-abi": "x86-softfloat"
"features": "-mmx,-sse,+soft-float"
}
```

View File

@@ -194,12 +194,6 @@ Un problème avec la désactivation de SIMD est que les opérations sur les nomb
Pour plus d'informations, voir notre article sur la [désactivation de SIMD](@/edition-2/posts/02-minimal-rust-kernel/disable-simd/index.md).
```json
"rustc-abi": "x86-softfloat"
```
As we want to use the `soft-float` feature, we also need to tell the Rust compiler `rustc` that we want to use the corresponding ABI. We can do that by setting the `rustc-abi` field to `x86-softfloat`.
#### Assembler le tout
Notre fichier de spécification de cible ressemble maintenant à ceci :
@@ -217,8 +211,7 @@ Notre fichier de spécification de cible ressemble maintenant à ceci :
"linker": "rust-lld",
"panic-strategy": "abort",
"disable-redzone": true,
"features": "-mmx,-sse,+soft-float",
"rustc-abi": "x86-softfloat"
"features": "-mmx,-sse,+soft-float"
}
```

View File

@@ -191,13 +191,6 @@ SIMDを無効化することによる問題に、`x86_64`における浮動小
より詳しくは、[SIMDを無効化する](@/edition-2/posts/02-minimal-rust-kernel/disable-simd/index.md)ことに関する私達の記事を読んでください。
```json
"rustc-abi": "x86-softfloat"
```
As we want to use the `soft-float` feature, we also need to tell the Rust compiler `rustc` that we want to use the corresponding ABI. We can do that by setting the `rustc-abi` field to `x86-softfloat`.
#### まとめると
私達のターゲット仕様ファイルは今このようになっているはずです。
@@ -215,8 +208,7 @@ As we want to use the `soft-float` feature, we also need to tell the Rust compil
"linker": "rust-lld",
"panic-strategy": "abort",
"disable-redzone": true,
"features": "-mmx,-sse,+soft-float",
"rustc-abi": "x86-softfloat"
"features": "-mmx,-sse,+soft-float"
}
```

View File

@@ -202,12 +202,6 @@ SIMD 레지스터 값들을 메모리에 백업하고 또 다시 복구하는
더 자세히 알고 싶으시다면, 저희가 작성한 [SIMD 기능 해제](@/edition-2/posts/02-minimal-rust-kernel/disable-simd/index.ko.md)에 관한 포스트를 확인해주세요.
```json
"rustc-abi": "x86-softfloat"
```
As we want to use the `soft-float` feature, we also need to tell the Rust compiler `rustc` that we want to use the corresponding ABI. We can do that by setting the `rustc-abi` field to `x86-softfloat`.
#### 요약
컴파일 대상 환경 설정 파일을 아래와 같이 작성합니다:
@@ -225,8 +219,7 @@ As we want to use the `soft-float` feature, we also need to tell the Rust compil
"linker": "rust-lld",
"panic-strategy": "abort",
"disable-redzone": true,
"features": "-mmx,-sse,+soft-float",
"rustc-abi": "x86-softfloat"
"features": "-mmx,-sse,+soft-float"
}
```

View File

@@ -189,12 +189,6 @@ A problem with disabling SIMD is that floating point operations on `x86_64` requ
For more information, see our post on [disabling SIMD](@/edition-2/posts/02-minimal-rust-kernel/disable-simd/index.md).
```json
"rustc-abi": "x86-softfloat"
```
As we want to use the `soft-float` feature, we also need to tell the Rust compiler `rustc` that we want to use the corresponding ABI. We can do that by setting the `rustc-abi` field to `x86-softfloat`.
#### Putting it Together
Our target specification file now looks like this:
@@ -212,8 +206,7 @@ Our target specification file now looks like this:
"linker": "rust-lld",
"panic-strategy": "abort",
"disable-redzone": true,
"features": "-mmx,-sse,+soft-float",
"rustc-abi": "x86-softfloat"
"features": "-mmx,-sse,+soft-float"
}
```

View File

@@ -194,12 +194,6 @@ Cargo поддерживает различные целевые системы
Для получения дополнительной информации см. наш пост об [отключении SIMD](@/edition-2/posts/02-minimal-rust-kernel/disable-simd/index.ru.md).
```json
"rustc-abi": "x86-softfloat"
```
As we want to use the `soft-float` feature, we also need to tell the Rust compiler `rustc` that we want to use the corresponding ABI. We can do that by setting the `rustc-abi` field to `x86-softfloat`.
#### Соединяем все вместе
Наша спецификация целовой платформы выглядит следующим образом:
@@ -218,8 +212,7 @@ As we want to use the `soft-float` feature, we also need to tell the Rust compil
"linker": "rust-lld",
"panic-strategy": "abort",
"disable-redzone": true,
"features": "-mmx,-sse,+soft-float",
"rustc-abi": "x86-softfloat"
"features": "-mmx,-sse,+soft-float"
}
```

View File

@@ -161,12 +161,6 @@ Nightly 版本的编译器允许我们在源码的开头插入**特性标签**
[disabling SIMD]: @/edition-2/posts/02-minimal-rust-kernel/disable-simd/index.zh-CN.md
```json
"rustc-abi": "x86-softfloat"
```
As we want to use the `soft-float` feature, we also need to tell the Rust compiler `rustc` that we want to use the corresponding ABI. We can do that by setting the `rustc-abi` field to `x86-softfloat`.
现在,我们将各个配置项整合在一起。我们的目标配置清单应该长这样:
```json
@@ -183,8 +177,7 @@ As we want to use the `soft-float` feature, we also need to tell the Rust compil
"linker": "rust-lld",
"panic-strategy": "abort",
"disable-redzone": true,
"features": "-mmx,-sse,+soft-float",
"rustc-abi": "x86-softfloat"
"features": "-mmx,-sse,+soft-float"
}
```

View File

@@ -32,7 +32,7 @@ translation_contributors = ["asami-kawasaki", "Foo-x"]
[**マルチタスク**]: https://en.wikipedia.org/wiki/Computer_multitasking
一見、すべてのタスクが並列に実行されているように見えますが、1つのCPUコアで同時に実行できるのは1つのタスクだけです。タスクが並列に実行されているように見せるために、OSは実行中のタスクを素早く切り替えて、それぞれのタスクが少しずつ進むようにしています。コンピュータは高速なので、ほとんどの場合、私達がこの切り替えに気づくことはありません。
一見、すべてのタスクが並行して実行されているように見えますが、1つのCPUコアで同時に実行できるのは1つのタスクだけです。タスクが並列に実行されているように見せるために、OSは実行中のタスクを素早く切り替えて、それぞれのタスクが少しずつ進むようにしています。コンピュータは高速なので、ほとんどの場合、私達がこの切り替えに気づくことはありません。
シングルコアのCPUは一度に1つのタスクしか実行できませんが、マルチコアのCPUは複数のタスクを真の意味で並列に実行することができます。例えば、8コアのCPUであれば、8つのタスクを同時に実行することができます。マルチコアCPUの設定方法については、今後の記事でご紹介します。この記事では、わかりやすくするために、シングルコアのCPUに焦点を当てます。なお、マルチコアCPUには、最初は1つのアクティブコアしかないので、ここではシングルコアCPUとして扱っても問題はありません