mirror of
https://github.com/LearningOS/rust-based-os-comp2022.git
synced 2026-05-05 03:52:59 +08:00
deploy: d9a2a10160
This commit is contained in:
@@ -88,7 +88,7 @@ cargo 为我们准备好了 ``Hello world!`` 源代码:
|
||||
其中 host 一项表明默认目标平台是 ``x86_64-unknown-linux-gnu``,
|
||||
CPU 架构是 x86_64,CPU 厂商是 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_64,CPU 厂商是 unknown,操作系统是 linux,运行时
|
||||
它包含了 Rust 语言相当一部分核心机制,可以满足本门课程的需求。
|
||||
有很多第三方库也不依赖标准库 std,而仅仅依赖核心库 core。
|
||||
|
||||
为了以裸机平台为目标编译程序,我们要将对标准库 std 的引用换成核心库 core。
|
||||
为了以裸机平台为目标编译程序,我们要将对标准库 std 的引用换成核心库 core。
|
||||
|
||||
@@ -356,7 +356,7 @@
|
||||
</div>
|
||||
<p>其中 host 一项表明默认目标平台是 <code class="docutils literal notranslate"><span class="pre">x86_64-unknown-linux-gnu</span></code>,
|
||||
CPU 架构是 x86_64,CPU 厂商是 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
Reference in New Issue
Block a user