《嵌入式C語言自我修養——從晶片、編譯器到作業系統》是2021年電子工業出版社出版書籍,作者是王利濤。
基本介紹
- 中文名:嵌入式C語言自我修養——從晶片、編譯器到作業系統
- 作者: 王利濤
- 出版社:電子工業出版社
- 出版時間:2021年
- 頁數:568 頁
- 定價:118 元
- 開本:16 開
- ISBN: 9787121408564
內容簡介,圖書目錄,
內容簡介
這是一本專門為嵌入式讀者打造的C語言進階學習圖書。本書的學習重點不再是C語言的基本語法,而是和嵌入式、C語言相關的一系列知識。作者以C語言為切入點,分別探討了嵌入式開發所需要的諸多核心理論和技能,力圖幫助讀者從零搭建嵌入式開發所需要的完整知識體系和技能樹。本書從底層CPU的製造流程和工作原理開始講起,到計算機體系結構,C程式的反彙編分析,程式的編譯、運行和重定位,程式運行時的堆疊記憶體動態變化,GNU C編譯器的擴展語法,指針的靈活使用,C語言的面向對象編程思想,C語言的模組化編程思想,C語言的多任務編程思想,進程、執行緒和協程的概念,從底層到上層,從晶片、硬體到軟體、框架,幾乎涵蓋了嵌入式開發的所有知識點。
圖書目錄
第1 章 工欲善其事,必先利其器 ·····································································.1
1.1 代碼編輯工具:Vim ·············································································.2
1.1.1 安裝Vim ·················································································.2
1.1.2 Vim 常用命令 ············································································.3
1.1.3 Vim 配置檔案:vimrc ··································································.6
1.1.4 Vim 的按鍵映射 ·········································································.8
1.2 程式編譯工具:make ···········································································.10
1.2.1 使用IDE 編譯C 程式 ·································································.10
1.2.2 使用gcc 編譯C 源程式 ·······························································.11
1.2.3 使用make 編譯程式 ···································································.14
1.3 代碼管理工具:Git ·············································································.16
1.3.1 什麼是版本控制系統 ··································································.16
1.3.2 Git 的安裝和配置 ······································································.18
1.3.3 Git 常用命令 ············································································.18
第2 章 計算機體系結構與CPU 工作原理 ·························································.21
2.1 一顆晶片是怎樣誕生的 ········································································.22
2.1.1 從沙子到單晶矽 ········································································.22
2.1.2 PN 結的工作原理 ······································································.24
2.1.3 從PN 結到晶片電路 ···································································.26
2.1.4 晶片的封裝 ··············································································.28
2.2 一顆CPU 是怎么設計出來的 ·································································.29
2.2.1 計算機理論基石:圖靈機 ····························································.30
嵌入式C 語言自我修養——從晶片、編譯器到作業系統
? XIV ?
2.2.2 CPU 內部結構及工作原理 ····························································.31
2.2.3 CPU 設計流程 ··········································································.33
2.3 計算機體系結構 ·················································································.37
2.3.1 馮·諾依曼架構 ··········································································.38
2.3.2 哈弗架構 ················································································.38
2.3.3 混合架構 ················································································.38
2.4 CPU 性能提升:Cache 機制 ···································································.39
2.4.1 Cache 的工作原理 ······································································.39
2.4.2 一級Cache 和二級Cache ·····························································.41
2.4.3 為什麼有些處理器沒有Cache ·······················································.42