Hi, Suppose I get a Kernel source code and try to compile it on Linux which is not having gcc compiler then it will not get compiled for sure b'coz kernel needs gcc for compilation. My question is then how a Linux gets installed on raw hard disk which in not having gcc pre-installed. I also believe gcc can't be installed on raw hard disk (not sure and never tried). So, it is also not the case that Linux installs gcc first and then do the rest later. Can any one explain how the thing works from lower level point of view. |
For the newbies who come here, thinking this was actually a question on how to install Linux, go check out the following versions of Linux: Both will autoinstall, autodetect and configure all your hardware. Bliss. |
what is your linux platform ??? |
Er... Actually, the Linux kernel doesn't really need GCC specifically. Not anymore. These days there are plenty of compilers avalable. And you don't even need GCC specifically to build anything on Linux. As for which came first, GCC did, although it is frequently debated about its quality before Linux came along. That, of course, is not a subject for this web site. I think it'd serve well to point out that almost everything in the GNU toolchain has a comparable non-GNU Free/Open Source replacement available. GCC is replaced commonly with EGCS, for example, and HAS replaced GCC as the default in systems such as Debian. |
As per my understanding of Linux installation on any hard drive is very easy. If we see the installation process carefully then we'll find that installation comes into two phases. First phase of installation provides one pre compiled kernel and initial ramdisk. Ramdisk contains all those module necessary to work with file system and kernel starts booting process and the second stage provides all the softwares to be installed as part of OS. If we are using CD/DVD rom then we can easily see precompiled kernel and ramdisk under images folder in the installtion CD/DVD. If we are using PXE boot then we first provide these two through tftp server. I hope this is a logical answer. |
Please accept an answer so the question/answer can be finished.