How can the Linux kernel compile itself?

后端 未结 7 2444
不思量自难忘°
不思量自难忘° 2020-12-12 10:10

I don\'t quite understand the compiling process of the Linux kernel when I install a Linux system on my machine.

Here are some things that confused me:

7条回答
  •  眼角桃花
    2020-12-12 10:34

    The term describing this phenomenon is bootstrapping, it's an interesting concept to read up on. If you think about embedded development, it becomes clear that a lot of devices, say alarm clocks, microwaves, remote controls, that require software aren't powerful enough to compile their own software. In fact, these sorts of devices typically don't have enough resources to run anything remotely as complicated as a compiler.

    Their software is developed on a desktop machine and then copied once it's been compiled.

    If this sort of thing interests you, an article that comes to mind off the top of my head is: Reflections on Trusting Trust (pdf), it's a classic and a fun read.

提交回复
热议问题