How can the Linux kernel compile itself?
stackoverflow.com
How can the Linux kernel compile itself?
1–10 of 33 posts
Re: How can the Linux kernel compile itself?
#2Re: How can the Linux kernel compile itself?
#3Re: How can the Linux kernel compile itself?
#4This is why I think more people should expose themselves to hardware design, CPU design, and compiler writing, if only at an abstract/academic level. I've worked with a lot of entry-level programmers, and even some that were not so entry-level, that wouldn't have a clue how to answer this question, which is quite depressing.
Re: How can the Linux kernel compile itself?
#5If he thinks that's weird, then he ought to read Ken Thompson's article about trusting compilers. http://cm.bell-labs.com/who/ken/trust.html
Re: How can the Linux kernel compile itself?
#6Short answer: it can't. Each software system relies for its own existence on a predecessor, usually one of smaller scope. Sort of like biology and evolution.
When I wrote Apple Writer in 1978, there were no high-level development tools available, just a primitive assembler built into the Apple II BIOS. By making direct hand entries, I used the BIOS assembler to write a better, faster assembler that supported alphabetic labels. Then I used that assembler to write a better one, and eventually I had a development tool suitable for writing applications.
Linux development has relied on a similar bootstrap process, on a larger scale.
Re: How can the Linux kernel compile itself?
#7This is why I think more people should expose themselves to hardware design, CPU design, and compiler writing, if only at an abstract/academic level. I've worked with a lot of entry-level programmers, and even some that were not so entry-level, that wouldn't have a clue how to answer this question, which is quite depressing.
I'm not a programmer at all, and I found this answer quite obvious. Where else does new binary software come from, if not from a computer running older software?
Re: How can the Linux kernel compile itself?
#8If he thinks that's weird, then he ought to read Ken Thompson's article about trusting compilers. http://cm.bell-labs.com/who/ken/trust.html
Re: How can the Linux kernel compile itself?
#9Re: How can the Linux kernel compile itself?
#10Earlier quoted context omitted.
I'm not a programmer at all, and I found this answer quite obvious. Where else does new binary software come from, if not from a computer running older software?
It shouldn't be such a mystery, because it follows a biological model -- small, simple organisms produce more complex descendants by way of natural selection, all fueled by proteins. The same process creates complex software systems out of simple predecessors, all fueled by coffee.
The chicken or egg problem shows that at some point you lose the connection to the predecessor and the process goes around in endless circles.
Then you might wonder how it ever came to be when the first thing depends on the second and the second depends on the first.