討論串[問題] mmap memory issue
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 2→)留言2則,0人參與, 最新作者RiverJackson (JACK)時間16年前 (2009/12/20 11:21), 編輯資訊
0
0
1
內容預覽:
請問一個網路上例子. http://learn.akae.cn/media/ch28s08.html. 0000000 68 65 6c 6c 6f 0a. h e l l o \n. 0000006. 為什麼做完p[0] = 0x30313233;. 會變成. $ od -tx1 -tc hell

推噓1(1推 0噓 2→)留言3則,0人參與, 最新作者mayasky ( )時間16年前 (2009/12/18 20:24), 編輯資訊
0
0
0
內容預覽:
1.沒減少4M~因為你還沒真的用4M,只是先幫你作好4M的對應(VMA),demanded paging. 2.你要用unsinged int也可以,反正一樣長,但你用VOID卻不能給值. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 114.43.215.91.

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者RiverJackson (JACK)時間16年前 (2009/12/18 17:52), 編輯資訊
0
0
0
內容預覽:
請問一下. 我去開hello這個檔案. 但是free一下 並沒有減少 4M空間(4000000). 還有為什麼p 要宣告成int呢. #include <stdlib.h>. #include <sys/mman.h>. #include <fcntl.h>. int main(void). {.
(還有225個字)
首頁
上一頁
1
下一頁
尾頁