现在的位置: 首页 > 综合 > 正文

LKD第二章小节

2013年10月07日 ⁄ 综合 ⁄ 共 770字 ⁄ 字号 评论关闭

每次看书都是流水线的过去,没啥总结委屈。这可不行,看了就忘是正常的,但是该记录的时候可是不会浪费时间的。偷笑

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.移植性很重要。

抱歉!评论已关闭.