Skip to content

Commit

Permalink
fix error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ayamir committed Feb 29, 2024
1 parent 81a6fcc commit af19386
Show file tree
Hide file tree
Showing 19 changed files with 322 additions and 53 deletions.
4 changes: 2 additions & 2 deletions content/posts/knowledge/os/virtual-memory-space.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ math: true
keywords: ["OS"]
tags: ["OS"]
categories: ["knowledge"]
url: "posts/knowledge/os/process"
url: "posts/knowledge/os/virtual-memory-space"
---

## 什么是虚拟地址空间?
Expand Down Expand Up @@ -37,7 +37,7 @@ url: "posts/knowledge/os/process"
- 数据段(.data):已初始化的静态常量、全局变量
- BSS 段(.bss):未初始化的静态变量、全局变量
- 堆:动态分配的内存,从低地址开始向上增长;
- 文件映射段:动态库、共享内存等,从低地址开始向上增长
- 文件映射段:动态库、共享内存等,从高地址开始向下增长
- 栈:局部变量和函数调用的上下文等。栈的大小是固定的,一般是 `8 MB`,从高地址开始向下增长。

## 为什么需要虚拟地址空间?
Expand Down
2 changes: 1 addition & 1 deletion docs/categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ <h3 class="card-item-title">
knowledge
</a>
</h3><div class="categories-item">
<a href="/posts/knowledge/os/process/" class="categories-item-link">
<a href="/posts/knowledge/os/virtual-memory-space/" class="categories-item-link">
<i class="fa-solid fa-angle-right fa-fw"></i>&nbsp;虚拟地址空间</a>
</div><div class="categories-item">
<a href="/posts/knowledge/cpp/abi/" class="categories-item-link">
Expand Down
2 changes: 1 addition & 1 deletion docs/categories/knowledge/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<div class="container"><div class="page archive"><h2 class="single-title animated fadeInDown faster">knowledge</h2><h3 class="group-title">2024</h3><div class="timeline">
<div class="circle">
<div class="item">
<a href="/posts/knowledge/os/process/" class="item-link">虚拟地址空间</a>
<a href="/posts/knowledge/os/virtual-memory-space/" class="item-link">虚拟地址空间</a>
</div>
<div class="item">
<span class="item-date">
Expand Down
6 changes: 3 additions & 3 deletions docs/categories/knowledge/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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 &#43;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 &#43;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 &#43;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>
Expand Down Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@
alt="https://avatars.githubusercontent.com/u/61657399?s=400&amp;u=7a71222b05d3e29bae8c36647b078d8aad923bfe&amp;v=4"
title="https://avatars.githubusercontent.com/u/61657399?s=400&amp;u=7a71222b05d3e29bae8c36647b078d8aad923bfe&amp;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>&nbsp;<span class="post-publish">发布于 <time datetime="2024-02-07">2024-02-07</time></span>&nbsp;<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>&nbsp;<span class="post-publish">发布于 <time datetime="2024-02-07">2024-02-07</time></span>&nbsp;<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>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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 &#43;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 &#43;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>
Expand Down Expand Up @@ -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>
Expand Down
6 changes: 3 additions & 3 deletions docs/posts/development/git-usage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<meta property="og:type" content="article" />
<meta property="og:url" content="https://ayamir.github.io/posts/development/git-usage/" /><meta property="article:section" content="posts" />
<meta property="article:published_time" content="2024-01-23T09:50:29+08:00" />
<meta property="article:modified_time" content="2024-01-23T11:55:53+08:00" />
<meta property="article:modified_time" content="2024-02-13T16:39:57+08:00" />

<meta name="twitter:card" content="summary"/><meta name="twitter:title" content="Git 常用用法记录"/>
<meta name="twitter:description" content="这篇博客用来记录平时用到的一些 Git 操作,用到之后会不定时更新。 clone 相关 克隆指定 branch : git clone --branch &lt;branch-name&gt; &lt;remote-repo-url&gt; 递归克隆(包括submodule):git clone --recursive 已经 clone"/>
Expand All @@ -26,7 +26,7 @@
"@type": "WebPage",
"@id": "https:\/\/ayamir.github.io\/posts\/development\/git-usage\/"
},"genre": "posts","keywords": "git","wordcount": 339 ,
"url": "https:\/\/ayamir.github.io\/posts\/development\/git-usage\/","datePublished": "2024-01-23T09:50:29+08:00","dateModified": "2024-01-23T11:55:53+08:00","publisher": {
"url": "https:\/\/ayamir.github.io\/posts\/development\/git-usage\/","datePublished": "2024-01-23T09:50:29+08:00","dateModified": "2024-02-13T16:39:57+08:00","publisher": {
"@type": "Organization",
"name": "Ayamir"},"author": {
"@type": "Person",
Expand Down Expand Up @@ -163,7 +163,7 @@ <h2 id="协作相关">协作相关</h2>
</div><div class="post-footer" id="post-footer">
<div class="post-info"><div class="post-info-tag"><span><a href="/tags/git/">git</a>
</span></div><div class="post-info-line"><div class="post-info-mod">
<span>更新于 2024-01-23</span>
<span>更新于 2024-02-13</span>
</div><div class="post-info-mod"><span>
<a class="link-to-markdown" href="/posts/development/git-usage/index.md" target="_blank">阅读原始文档</a>
</span></div>
Expand Down
2 changes: 1 addition & 1 deletion docs/posts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<div class="container"><div class="page archive"><h2 class="single-title animated fadeInDown faster">所有文章</h2><h3 class="group-title">2024</h3><div class="timeline">
<div class="circle">
<div class="item">
<a href="/posts/knowledge/os/process/" class="item-link">虚拟地址空间</a>
<a href="/posts/knowledge/os/virtual-memory-space/" class="item-link">虚拟地址空间</a>
</div>
<div class="item">
<span class="item-date">
Expand Down
6 changes: 3 additions & 3 deletions docs/posts/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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 &#43;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 &#43;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 &#43;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>
Expand Down Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions docs/posts/knowledge/cpp/abi/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<meta name="application-name" content="Ayamir&#39;s blog">
<meta name="apple-mobile-web-app-title" content="Ayamir&#39;s blog"><meta name="theme-color" content="#ffffff"><meta name="msapplication-TileColor" content="#da532c"><link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"><link rel="manifest" href="/site.webmanifest"><link rel="canonical" href="https://ayamir.github.io/posts/knowledge/cpp/abi/" /><link rel="prev" href="https://ayamir.github.io/posts/development/orphan-process/" /><link rel="next" href="https://ayamir.github.io/posts/knowledge/os/process/" /><link rel="stylesheet" href="/css/page.min.3c64fa2243caf1a1a9f6f88aa692d72009f930caa2e1677ef98d74dc6469d3cf.css" integrity="sha256-PGT6IkPK8aGp9viKppLXIAn5MMqi4Wd&#43;&#43;Y103GRp088="><link rel="stylesheet" href="/css/home.min.683c773e1bfe70dd2cdfacd9b9a1d6eabdde03ab18da367beb1383e8fb2eaa63.css" integrity="sha256-aDx3Phv&#43;cN0s36zZuaHW6r3eA6sY2jZ76xOD6PsuqmM="><script type="application/ld+json">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"><link rel="manifest" href="/site.webmanifest"><link rel="canonical" href="https://ayamir.github.io/posts/knowledge/cpp/abi/" /><link rel="prev" href="https://ayamir.github.io/posts/development/orphan-process/" /><link rel="next" href="https://ayamir.github.io/posts/knowledge/os/virtual-memory-space/" /><link rel="stylesheet" href="/css/page.min.3c64fa2243caf1a1a9f6f88aa692d72009f930caa2e1677ef98d74dc6469d3cf.css" integrity="sha256-PGT6IkPK8aGp9viKppLXIAn5MMqi4Wd&#43;&#43;Y103GRp088="><link rel="stylesheet" href="/css/home.min.683c773e1bfe70dd2cdfacd9b9a1d6eabdde03ab18da367beb1383e8fb2eaa63.css" integrity="sha256-aDx3Phv&#43;cN0s36zZuaHW6r3eA6sY2jZ76xOD6PsuqmM="><script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "BlogPosting",
Expand Down Expand Up @@ -153,7 +153,7 @@ <h2 id="abi-compatible-">ABI-Compatible ?</h2>
</div><div class="post-info-share">
<span><a href="#" onclick="return false;" title="分享到 Twitter" data-sharer="twitter" data-url="https://ayamir.github.io/posts/knowledge/cpp/abi/" data-title="ABI是什么?" data-hashtags="ABI,C&#43;&#43;"><i class="fa-brands fa-square-x-twitter fa-fw"></i></a><a href="#" onclick="return false;" title="分享到 Facebook" data-sharer="facebook" data-url="https://ayamir.github.io/posts/knowledge/cpp/abi/" data-hashtag="ABI"><i class="fa-brands fa-facebook-square fa-fw"></i></a><a href="#" onclick="return false;" title="分享到 WhatsApp" data-sharer="whatsapp" data-url="https://ayamir.github.io/posts/knowledge/cpp/abi/" data-title="ABI是什么?" data-web><i class="fa-brands fa-whatsapp fa-fw"></i></a><a href="#" onclick="return false;" title="分享到 Line" data-sharer="line" data-url="https://ayamir.github.io/posts/knowledge/cpp/abi/" data-title="ABI是什么?"><i class="fa-brands fa-line fa-fw"></i></a><a href="#" onclick="return false;" title="分享到 微博" data-sharer="weibo" data-url="https://ayamir.github.io/posts/knowledge/cpp/abi/" data-title="ABI是什么?"><i class="fa-brands fa-weibo fa-fw"></i></a><a href="#" onclick="return false;" title="分享到 Myspace" data-sharer="myspace" data-url="https://ayamir.github.io/posts/knowledge/cpp/abi/" data-title="ABI是什么?" data-description=""><i data-svg-src="/lib/simple-icons/icons/myspace.min.svg"></i></a><a href="#" onclick="return false;" title="分享到 Blogger" data-sharer="blogger" data-url="https://ayamir.github.io/posts/knowledge/cpp/abi/" data-title="ABI是什么?" data-description=""><i class="fa-brands fa-blogger fa-fw"></i></a><a href="#" onclick="return false;" title="分享到 Evernote" data-sharer="evernote" data-url="https://ayamir.github.io/posts/knowledge/cpp/abi/" data-title="ABI是什么?"><i class="fa-brands fa-evernote fa-fw"></i></a></span>
</div></div><div class="post-nav"><a href="/posts/development/orphan-process/" class="prev" rel="prev" title="孤儿进程"><i class="fa-solid fa-angle-left fa-fw"></i>Previous Post</a>
<a href="/posts/knowledge/os/process/" class="next" rel="next" title="虚拟地址空间">Next Post<i class="fa-solid fa-angle-right fa-fw"></i></a></div></div>
<a href="/posts/knowledge/os/virtual-memory-space/" class="next" rel="next" title="虚拟地址空间">Next Post<i class="fa-solid fa-angle-right fa-fw"></i></a></div></div>
</div><div id="comments" class="single-card"><div id="utterances"></div><noscript>
Please enable JavaScript to view the comments powered by <a href="https://utteranc.es/">Utterances</a>.
</noscript></div></article></div>
Expand Down
2 changes: 1 addition & 1 deletion docs/posts/knowledge/os/process/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ <h2 class="toc-title">目录</h2>
<li>数据段(.data):已初始化的静态常量、全局变量</li>
<li>BSS 段(.bss):未初始化的静态变量、全局变量</li>
<li>堆:动态分配的内存,从低地址开始向上增长;</li>
<li>文件映射段:动态库、共享内存等,从低地址开始向上增长</li>
<li>文件映射段:动态库、共享内存等,从高地址开始向下增长</li>
<li>栈:局部变量和函数调用的上下文等。栈的大小是固定的,一般是 <code>8 MB</code>,从高地址开始向下增长。</li>
</ul>
<h2 id="为什么需要虚拟地址空间">为什么需要虚拟地址空间?</h2>
Expand Down
2 changes: 1 addition & 1 deletion docs/posts/knowledge/os/process/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
- 数据段(.data):已初始化的静态常量、全局变量
- BSS 段(.bss):未初始化的静态变量、全局变量
- 堆:动态分配的内存,从低地址开始向上增长;
- 文件映射段:动态库、共享内存等,从低地址开始向上增长
- 文件映射段:动态库、共享内存等,从高地址开始向下增长
- 栈:局部变量和函数调用的上下文等。栈的大小是固定的,一般是 `8 MB`,从高地址开始向下增长。

## 为什么需要虚拟地址空间?
Expand Down
Loading

0 comments on commit af19386

Please sign in to comment.