• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            flushthink

            just for essential skill
            隨筆 - 14, 文章 - 0, 評論 - 30, 引用 - 0
            數據加載中……

            mm1

            cpu發出線性地址,linux內存管理單元做如下四步:
            1.用線性地址中最高的那一位段作為下標在PGD中找到相應的表項,該表項指向相應的中間目錄PMD。
            2.用線性地址中的第二個位段作為下標在第一步中找到的表項中找相應的表項,該表項指向相應的頁面表。
            3.用線性地址中的第三個位段作為下標在頁面表中找到相應的表項PTE,該表項中存放的就是指向物理頁面的指針。
            4.線性地址中最后位段為物理頁面的相對位移量,將此位移量與目標物理頁面的起始地址相加便得到相應的物理地址。

            linux為了兼容所有的cpu體系結構,特意對內存管理進行了一層抽象。
            常規映射是: 進程虛擬地址(線性地址)->頁目錄->中間目錄->物理地址
            而對i386的cpu直接略過中間目錄的映射。
            其中PGD == page dir,PMD == page middle dir, PTE == page table entry。
            這個過程可以有mmu來處理。

            posted @ 2009-10-21 16:32 tiny 閱讀(1166) | 評論 (0)編輯 收藏

            enable_shared_from_this、weak_ptr、shared_ptr

                 摘要: 網上說weak_ptr是shared_ptr的觀察員,weak_ptr不會干擾shared_ptr機制,當weak_ptr所觀察的shared_ptr要釋放對象時,weak_ptr的指針將被置空,避免空懸指針。weak_ptr只能通過shared_ptr或weak_ptr構造。對于一個shared_ptr,它分別對強引用和弱引用都做了計數。 上圖是下面代碼的調試信息。 #include&nbs...  閱讀全文

            posted @ 2009-09-17 15:14 tiny 閱讀(2125) | 評論 (0)編輯 收藏

            log4cxx的編譯

            首先下載apr-1.2.11-win32-src.zip、apr-util-1.2.10-win32-src.zip、apache-log4cxx-0.10.0.zip,還有sed for windows
            解壓,然后重命名前2個文件夾為apr,apr-util(去掉版本信息),把apr,apr-util,apache-log4cxx-0.10.0這3放在同一個目錄,然后執行apache-log4cxx-0.10.0里的configure.bat和configure_aprutil.bat(用到sed)這2個,最后進入projects,打開log4cxx項目,編譯吧。

            posted @ 2009-06-02 17:08 tiny 閱讀(379) | 評論 (0)編輯 收藏

            游戲資源歸檔

            最近玩了玩泰坦之旅,主要是因為它提供了mod工具。
            就打包工具ArchiveTool.exe來說說。
            在控制臺直接無參數運行ArchiveTool.exe得到以下幫助信息:
            Usage: archiveTool <file> <command> [command arguuments]
            commands:
                -add <directory> <base> [compression (0: min, 9: max)]: add a file or directory
                    relative to the base directory. If a file is already in the archive it will not be added.
                -replace <directory> <base> [compression (0: min, 9: max)]: replace a file or directory
                    relative to the base directory. If a file is already in the archive it will be overwritten.
                -update <directory> <base> [compression (0: min, 9: max)]: update a file ordirectory
                    relative to the base directory. Files will only be added if they are newer than
                    those already in the archive.
                -remove <file> : remove a file from the archive.
                -extract <location> [file] : extract the files or specified file to thespecified location.
                -removeMissing <file> <base> : remove the files that are not in the specified directory.
                -compact : compact the archive removing unused files.
                -list : list the files in the archive.
                -stats : display the archive statistics.

            posted @ 2009-06-01 18:13 tiny 閱讀(1286) | 評論 (0)編輯 收藏

            僅列出標題
            共2頁: 1 2 
            精品久久久中文字幕人妻| 久久国产成人精品麻豆| 久久精品国产清自在天天线| 日韩精品无码久久久久久| 久久九九久精品国产| 色欲久久久天天天综合网精品| 亚洲欧美精品伊人久久| 久久成人国产精品免费软件| 婷婷久久综合九色综合98| 中文字幕精品无码久久久久久3D日动漫 | 亚洲精品国产第一综合99久久| 久久香蕉国产线看观看精品yw| 久久精品亚洲男人的天堂| 久久精品人人做人人爽电影蜜月| 欧美色综合久久久久久| Xx性欧美肥妇精品久久久久久 | 热久久国产欧美一区二区精品| 久久精品国产乱子伦| 色婷婷噜噜久久国产精品12p| 青青青青久久精品国产h| 久久久久久亚洲精品成人| 久久久久亚洲AV成人网人人网站| 国产亚洲精久久久久久无码AV| 久久人人爽人人爽人人AV东京热| 久久夜色精品国产噜噜亚洲a| 国内精品久久久久久久久| 99久久久精品| 97精品伊人久久大香线蕉app| 人妻无码αv中文字幕久久| 国产A级毛片久久久精品毛片| 伊人色综合九久久天天蜜桃| 亚洲第一永久AV网站久久精品男人的天堂AV | 精品一久久香蕉国产线看播放| 精品999久久久久久中文字幕| 久久99精品国产麻豆| 久久精品国产久精国产思思 | 一本色道久久综合狠狠躁| 麻豆成人久久精品二区三区免费| 99蜜桃臀久久久欧美精品网站| 亚洲国产精品成人久久| 人妻精品久久无码区|