LKD第二章小節

來源:互聯網
上載者:User

每次看書都是流水線的過去,沒啥總結。這可不行,看了就忘是正常的,但是該記錄的時候可是不會浪費時間的。

Obtaining the Kernel Source

擷取核心原始碼,這個可以到www.kernel.org下載

Using Git

這個是Linus開發的一個版本控制工具,比那個CVS好點。

Install the Kernel Source--安裝核心原始碼

linux-x.y.z.tar.bz2這裡的x.y.x是核心原始碼的版本。

核心原始碼一般在/usr/src/linux裡面儲存著。

 中間省略一部分。。

重點看A Beast of a Different Nature核心版本的不同

1.The kernel has access to neither the C library nor the standard C headers.

不能是C函數庫或者C標頭檔

2.The kernel is coded in GNU C.

核心是使用GNU C寫的

3.The kernel lacks the memory protection afforded to user-space.

沒有記憶體保護機制。

4.The kernel cannot easily execute floating-point operations.

核心不能輕鬆執行浮點運算。

5.The kernel has a small per-process fixed-size stack.

核心的棧只有很小的空間,

8KB--32bit

16KB--64bit

6.Because the kernel has asynchronous interrupts, is preemptive, and supports SMP,

synchronization and concurrency are major concerns within the kernel.

7.Portability is important.移植性很重要。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.