| Juha Laiho 2004-10-06, 5:56 pm |
| sainiharsimran@yahoo.co.in (Harsimran) said:
>I am learning OS in my Graduation and stuck with the idea of
>programing os in assembly level programing in begning then in C .
> I am not able to understand how this is achieved ,how C programe
>intereacts with assembly level and how the compiler is implemented
>before os is written .Because to write a programe in c you have to
>have a compiler and to run a compiler u have to have a os .
You "bootstrap" the deveopment on another system. So, in the initial
phases you have some other platform on which you write and compile
your to-be OS. It may even be so that the CPU architecture on your
host (programming/compilation) system and target system are different,
in which case you need a cross-compiler.
For example, the first versions of Linux were written and compiled on
a machine running Minix (until Linux matured enough to be able to run
a compiler, and until gcc got ported to Linux).
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
|