This commit is contained in:
YdrMaster
2022-10-26 02:02:10 +00:00
parent 49a9a4b2ac
commit 5498d932f5
3 changed files with 4 additions and 4 deletions

View File

@@ -88,7 +88,7 @@ cargo 为我们准备好了 ``Hello world!`` 源代码:
其中 host 一项表明默认目标平台是 ``x86_64-unknown-linux-gnu``
CPU 架构是 x86_64CPU 厂商是 unknown操作系统是 linux运行时库是 gnu libc。
接下来,我们希望把 ``Hello, world!`` 移植到 RICV 目标平台 ``riscv64gc-unknown-none-elf`` 上运行。
接下来,我们希望把 ``Hello, world!`` 移植到 RISC-V 目标平台 ``riscv64gc-unknown-none-elf`` 上运行。
.. note::
@@ -117,4 +117,4 @@ CPU 架构是 x86_64CPU 厂商是 unknown操作系统是 linux运行时
它包含了 Rust 语言相当一部分核心机制,可以满足本门课程的需求。
有很多第三方库也不依赖标准库 std而仅仅依赖核心库 core。
为了以裸机平台为目标编译程序,我们要将对标准库 std 的引用换成核心库 core。
为了以裸机平台为目标编译程序,我们要将对标准库 std 的引用换成核心库 core。

View File

@@ -356,7 +356,7 @@
</div>
<p>其中 host 一项表明默认目标平台是 <code class="docutils literal notranslate"><span class="pre">x86_64-unknown-linux-gnu</span></code>
CPU 架构是 x86_64CPU 厂商是 unknown操作系统是 linux运行时库是 gnu libc。</p>
<p>接下来,我们希望把 <code class="docutils literal notranslate"><span class="pre">Hello,</span> <span class="pre">world!</span></code> 移植到 RICV 目标平台 <code class="docutils literal notranslate"><span class="pre">riscv64gc-unknown-none-elf</span></code> 上运行。</p>
<p>接下来,我们希望把 <code class="docutils literal notranslate"><span class="pre">Hello,</span> <span class="pre">world!</span></code> 移植到 RISC-V 目标平台 <code class="docutils literal notranslate"><span class="pre">riscv64gc-unknown-none-elf</span></code> 上运行。</p>
<div class="admonition note">
<p class="admonition-title">注解</p>
<p><code class="docutils literal notranslate"><span class="pre">riscv64gc-unknown-none-elf</span></code> 的 CPU 架构是 riscv64gc厂商是 unknown操作系统是 none

File diff suppressed because one or more lines are too long