mirror of
https://github.com/cccriscv/mini-riscv-os.git
synced 2025-11-16 04:24:33 +00:00
update the document
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
# mini-riscv-os
|
# mini-riscv-os
|
||||||
|
|
||||||
|
<img src="./logo.png" width="300" />
|
||||||
|
|
||||||
Build a minimal multi-tasking OS kernel for RISC-V from scratch
|
Build a minimal multi-tasking OS kernel for RISC-V from scratch
|
||||||
|
|
||||||
Mini-riscv-os was inspired by [jserv](https://github.com/jserv)'s [mini-arm-os](https://github.com/jserv/mini-arm-os) project.
|
Mini-riscv-os was inspired by [jserv](https://github.com/jserv)'s [mini-arm-os](https://github.com/jserv/mini-arm-os) project.
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ MEMORY
|
|||||||
|
|
||||||
本文中所提到的 Heap 與資料結構的 Heap 不同,這邊的 Heap 是指可供作業系統與 Process 分配的記憶體空間,我們都知道, Stack 會存放已經初始化的固定長度資料,比起 Stack , Heap 有了更多彈性,我們想要使用多少空間就分配多少空間,並且在使用後可以進行記憶體回收避免浪費。
|
本文中所提到的 Heap 與資料結構的 Heap 不同,這邊的 Heap 是指可供作業系統與 Process 分配的記憶體空間,我們都知道, Stack 會存放已經初始化的固定長度資料,比起 Stack , Heap 有了更多彈性,我們想要使用多少空間就分配多少空間,並且在使用後可以進行記憶體回收避免浪費。
|
||||||
|
|
||||||
```c=
|
```cpp
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
int *p = (int*) malloc(sizeof(int));
|
int *p = (int*) malloc(sizeof(int));
|
||||||
// ...
|
// ...
|
||||||
|
|||||||
Reference in New Issue
Block a user