mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Compare commits
4 Commits
0656c21327
...
03e41b0e52
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03e41b0e52 | ||
|
|
4de9527ef8 | ||
|
|
c46922678e | ||
|
|
146e694d08 |
@@ -9,6 +9,8 @@ date = 2018-02-10
|
||||
translation_based_on_commit = "24d04e0e39a3395ecdce795bab0963cb6afe1bfd"
|
||||
# GitHub usernames of the people that translated this post
|
||||
translators = ["wusyong"]
|
||||
# GitHub usernames of the people that contributed to this translation
|
||||
translation_contributors = ["gnitoahc"]
|
||||
+++
|
||||
|
||||
建立我們自己的作業系統核心的第一步是建立一個不連結標準函式庫的 Rust 執行檔,這使得無需基礎作業系統即可在[裸機][bare metal]上執行 Rust 程式碼。
|
||||
@@ -367,7 +369,7 @@ cargo rustc -- -C link-args="/ENTRY:_start /SUBSYSTEM:console"
|
||||
|
||||
#### macOS
|
||||
|
||||
以下是 Linux 上會出現的(簡化過)連結器錯誤:
|
||||
以下是 macOS 上會出現的(簡化過)連結器錯誤:
|
||||
|
||||
```
|
||||
error: linking with `cc` failed: exit code: 1
|
||||
|
||||
Reference in New Issue
Block a user