mirror of
https://github.com/LearningOS/rust-based-os-comp2022.git
synced 2026-05-09 23:31:29 +08:00
deploy: 538b0448eb
This commit is contained in:
@@ -118,6 +118,12 @@ println! 宏是由标准库 std 提供的,且会使用到一个名为 write
|
||||
分析被移除标准库的程序
|
||||
-----------------------------
|
||||
|
||||
首先安装 cargo-binutils 工具集:
|
||||
|
||||
.. code-block:: console
|
||||
$ cargo install cargo-binutils
|
||||
$ rustup component add llvm-tools-preview
|
||||
|
||||
我们可以通过一些工具来分析目前的程序:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
@@ -382,6 +382,7 @@ error: requires `start` lang_item
|
||||
</div>
|
||||
<div class="section" id="id2">
|
||||
<h2>分析被移除标准库的程序<a class="headerlink" href="#id2" title="永久链接至标题">¶</a></h2>
|
||||
<p>首先安装 cargo-binutils 工具集:</p>
|
||||
<p>我们可以通过一些工具来分析目前的程序:</p>
|
||||
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">[文件格式]</span>
|
||||
<span class="gp">$ </span>file target/riscv64gc-unknown-none-elf/debug/os
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user