Unix questions - assembly level programing in C for os

This is Interesting: Free IT Magazines  
Home > Archive > Unix questions > October 2004 > assembly level programing in C for os





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author assembly level programing in C for os
Harsimran

2004-10-06, 2:54 am

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 .
Please put ligth on this confusion.
you can also mail me on hsaini@acm.org.
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)
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com