每次看書都是流水線的過去,沒啥總結。這可不行,看了就忘是正常的,但是該記錄的時候可是不會浪費時間的。
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.移植性很重要。