-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
133 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# 删除重复代码 | ||
add_compile_flag("-ffunction-sections -fdata-sections") | ||
add_link_flag("-Wl,--gc-sections") | ||
add_compile_flag("-ffunction-sections -fdata-sections") # 删除重复代码 | ||
add_link_flag("-Wl,--gc-sections") # 删除重复代码 | ||
add_compile_flag("-fvisibility=hidden") # 隐藏符号 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ nav: | |
- 历史: history.md | ||
- 编译: compile.md | ||
- 内核: kernel | ||
- 应用程序: app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
# 应用程序内存布局 | ||
|
||
## 32 位 | ||
|
||
`0000 0000 - 6fff ffff` 内核空间 | ||
`7000 0000 - efff ffff` 用户空间 | ||
`f000 0000 - ffff ffff` 内核共享数据 | ||
|
||
- `70000000 - 8fffffff` 代码段、数据段、bss 段 | ||
- `90000000 - afffffff` 堆 | ||
- `b0000000 - dfffffff` mmap 区域 | ||
- `e0000000 - efffffff` 栈 | ||
- `f0000000 - ffffffff` 内核共享数据 | ||
|
||
## 64 位 | ||
|
||
`0000 0000 0000 - 7fff ffff ffff` 内核空间 | ||
`8000 0000 0000 - efff ffff ffff` 用户空间 | ||
`f000 0000 0000 - ffff ffff ffff` 内核共享数据 | ||
|
||
- `8000 0000 0000 - 8fff ffff ffff` 代码段、数据段、bss 段 | ||
- `9000 0000 0000 - 9fff ffff ffff` 堆 | ||
- `a000 0000 0000 - dfff ffff ffff` mmap 区域 | ||
- `e000 0000 0000 - efff ffff ffff` 栈 | ||
- `f000 0000 0000 - ffff ffff ffff` 内核共享数据 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
|
||
#define SYSCALL_USE_INTERRPUT 0 | ||
|
||
#define PLOS_LOGGING 2 | ||
#define PLOS_LOGGING 0 | ||
|
||
#define PLOS_LOGGING_PRINTS 0 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.