-
Notifications
You must be signed in to change notification settings - Fork 1
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
19 changed files
with
322 additions
and
53 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
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,8 +6,8 @@ | |
<generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>[email protected] (Ayamir)</managingEditor> | ||
<webMaster>[email protected] (Ayamir)</webMaster><lastBuildDate>Wed, 07 Feb 2024 15:56:52 +0800</lastBuildDate><atom:link href="https://ayamir.github.io/categories/knowledge/" rel="self" type="application/rss+xml" /><item> | ||
<title>虚拟地址空间</title> | ||
<link>https://ayamir.github.io/posts/knowledge/os/process/</link> | ||
<pubDate>Wed, 07 Feb 2024 15:56:52 +0800</pubDate><author>[email protected] (Ayamir)</author><guid>https://ayamir.github.io/posts/knowledge/os/process/</guid> | ||
<link>https://ayamir.github.io/posts/knowledge/os/virtual-memory-space/</link> | ||
<pubDate>Wed, 07 Feb 2024 15:56:52 +0800</pubDate><author>[email protected] (Ayamir)</author><guid>https://ayamir.github.io/posts/knowledge/os/virtual-memory-space/</guid> | ||
<description><![CDATA[<h2 id="什么是虚拟地址空间">什么是虚拟地址空间?</h2> | ||
<p>虚拟地址空间就是每个程序在运行起来之后所独占的内存空间,也就是进程自己的地址空间。</p> | ||
<p>虚拟地址空间的大小由地址总线的宽度也就是计算机的字长决定:</p> | ||
|
@@ -36,7 +36,7 @@ $$</p> | |
<li>数据段(.data):已初始化的静态常量、全局变量</li> | ||
<li>BSS 段(.bss):未初始化的静态变量、全局变量</li> | ||
<li>堆:动态分配的内存,从低地址开始向上增长;</li> | ||
<li>文件映射段:动态库、共享内存等,从低地址开始向上增长;</li> | ||
<li>文件映射段:动态库、共享内存等,从高地址开始向下增长;</li> | ||
<li>栈:局部变量和函数调用的上下文等。栈的大小是固定的,一般是 <code>8 MB</code>,从高地址开始向下增长。</li> | ||
</ul> | ||
<h2 id="为什么需要虚拟地址空间">为什么需要虚拟地址空间?</h2> | ||
|
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 |
---|---|---|
|
@@ -96,8 +96,8 @@ | |
alt="https://avatars.githubusercontent.com/u/61657399?s=400&u=7a71222b05d3e29bae8c36647b078d8aad923bfe&v=4" | ||
title="https://avatars.githubusercontent.com/u/61657399?s=400&u=7a71222b05d3e29bae8c36647b078d8aad923bfe&v=4" /></a></div><div class="home-subtitle"><div id="id-1" class="typeit"></div></div><div class="links"><a href="https://github.com/ayamir" title="GitHub" target="_blank" rel="noopener noreffer me"><i class="fa-brands fa-github-alt fa-fw"></i></a><a href="https://www.zhihu.com/people/MiraculousMoon" title="知乎" target="_blank" rel="noopener noreffer me"><i data-svg-src="/lib/simple-icons/icons/zhihu.min.svg"></i></a><a href="mailto:[email protected]" title="Email" rel=" me"><i class="fa-regular fa-envelope fa-fw"></i></a><a href="/index.xml" title="RSS" target="_blank" rel="noopener noreffer me"><i class="fa-solid fa-rss fa-fw"></i></a></div><h3 class="home-disclaimer">Hardwork always pays off, whatever you do.</h3></div> | ||
<div class="summary-card"><article class="summary" itemscope itemtype="http://schema.org/Article" data-image="hide"><h2 class="single-title" itemprop="name headline"> | ||
<a href="/posts/knowledge/os/process/">虚拟地址空间</a> | ||
</h2><div class="post-meta"><span class="post-author"><a href="https://github.com/ayamir" title="Author" target="_blank" rel="noopener noreffer author" class="author"><i class="fa-solid fa-user-circle fa-fw"></i>Ayamir</a></span> <span class="post-publish">发布于 <time datetime="2024-02-07">2024-02-07</time></span> <span class="post-category">包括在 <a href="/categories/knowledge/"><i class="fa-regular fa-folder fa-fw"></i>knowledge</a></span></div><a class="content" href="/posts/knowledge/os/process/">什么是虚拟地址空间? 虚拟地址空间就是每个程序在运行起来之后所独占的内存空间,也就是进程自己的地址空间。 虚拟地址空间的大小由地址总线的宽度也就</a><div class="post-footer"><ul class="post-tags"><li><a href="/tags/os/">OS</a></li></ul></div> | ||
<a href="/posts/knowledge/os/virtual-memory-space/">虚拟地址空间</a> | ||
</h2><div class="post-meta"><span class="post-author"><a href="https://github.com/ayamir" title="Author" target="_blank" rel="noopener noreffer author" class="author"><i class="fa-solid fa-user-circle fa-fw"></i>Ayamir</a></span> <span class="post-publish">发布于 <time datetime="2024-02-07">2024-02-07</time></span> <span class="post-category">包括在 <a href="/categories/knowledge/"><i class="fa-regular fa-folder fa-fw"></i>knowledge</a></span></div><a class="content" href="/posts/knowledge/os/virtual-memory-space/">什么是虚拟地址空间? 虚拟地址空间就是每个程序在运行起来之后所独占的内存空间,也就是进程自己的地址空间。 虚拟地址空间的大小由地址总线的宽度也就</a><div class="post-footer"><ul class="post-tags"><li><a href="/tags/os/">OS</a></li></ul></div> | ||
</article> | ||
<article class="summary" itemscope itemtype="http://schema.org/Article" data-image="hide"><h2 class="single-title" itemprop="name headline"> | ||
<a href="/posts/knowledge/cpp/abi/">ABI是什么?</a> | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -8,8 +8,8 @@ | |
<atom:link href="https://ayamir.github.io/index.xml" rel="self" type="application/rss+xml" /> | ||
<item> | ||
<title>虚拟地址空间</title> | ||
<link>https://ayamir.github.io/posts/knowledge/os/process/</link> | ||
<pubDate>Wed, 07 Feb 2024 15:56:52 +0800</pubDate><author>[email protected] (Ayamir)</author><guid>https://ayamir.github.io/posts/knowledge/os/process/</guid> | ||
<link>https://ayamir.github.io/posts/knowledge/os/virtual-memory-space/</link> | ||
<pubDate>Wed, 07 Feb 2024 15:56:52 +0800</pubDate><author>[email protected] (Ayamir)</author><guid>https://ayamir.github.io/posts/knowledge/os/virtual-memory-space/</guid> | ||
<description><![CDATA[<h2 id="什么是虚拟地址空间">什么是虚拟地址空间?</h2> | ||
<p>虚拟地址空间就是每个程序在运行起来之后所独占的内存空间,也就是进程自己的地址空间。</p> | ||
<p>虚拟地址空间的大小由地址总线的宽度也就是计算机的字长决定:</p> | ||
|
@@ -38,7 +38,7 @@ $$</p> | |
<li>数据段(.data):已初始化的静态常量、全局变量</li> | ||
<li>BSS 段(.bss):未初始化的静态变量、全局变量</li> | ||
<li>堆:动态分配的内存,从低地址开始向上增长;</li> | ||
<li>文件映射段:动态库、共享内存等,从低地址开始向上增长;</li> | ||
<li>文件映射段:动态库、共享内存等,从高地址开始向下增长;</li> | ||
<li>栈:局部变量和函数调用的上下文等。栈的大小是固定的,一般是 <code>8 MB</code>,从高地址开始向下增长。</li> | ||
</ul> | ||
<h2 id="为什么需要虚拟地址空间">为什么需要虚拟地址空间?</h2> | ||
|
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,8 +6,8 @@ | |
<generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>[email protected] (Ayamir)</managingEditor> | ||
<webMaster>[email protected] (Ayamir)</webMaster><lastBuildDate>Wed, 07 Feb 2024 15:56:52 +0800</lastBuildDate><atom:link href="https://ayamir.github.io/posts/" rel="self" type="application/rss+xml" /><item> | ||
<title>虚拟地址空间</title> | ||
<link>https://ayamir.github.io/posts/knowledge/os/process/</link> | ||
<pubDate>Wed, 07 Feb 2024 15:56:52 +0800</pubDate><author>[email protected] (Ayamir)</author><guid>https://ayamir.github.io/posts/knowledge/os/process/</guid> | ||
<link>https://ayamir.github.io/posts/knowledge/os/virtual-memory-space/</link> | ||
<pubDate>Wed, 07 Feb 2024 15:56:52 +0800</pubDate><author>[email protected] (Ayamir)</author><guid>https://ayamir.github.io/posts/knowledge/os/virtual-memory-space/</guid> | ||
<description><![CDATA[<h2 id="什么是虚拟地址空间">什么是虚拟地址空间?</h2> | ||
<p>虚拟地址空间就是每个程序在运行起来之后所独占的内存空间,也就是进程自己的地址空间。</p> | ||
<p>虚拟地址空间的大小由地址总线的宽度也就是计算机的字长决定:</p> | ||
|
@@ -36,7 +36,7 @@ $$</p> | |
<li>数据段(.data):已初始化的静态常量、全局变量</li> | ||
<li>BSS 段(.bss):未初始化的静态变量、全局变量</li> | ||
<li>堆:动态分配的内存,从低地址开始向上增长;</li> | ||
<li>文件映射段:动态库、共享内存等,从低地址开始向上增长;</li> | ||
<li>文件映射段:动态库、共享内存等,从高地址开始向下增长;</li> | ||
<li>栈:局部变量和函数调用的上下文等。栈的大小是固定的,一般是 <code>8 MB</code>,从高地址开始向下增长。</li> | ||
</ul> | ||
<h2 id="为什么需要虚拟地址空间">为什么需要虚拟地址空间?</h2> | ||
|
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.