assembly level programing in C for os
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix questions > assembly level programing in C for os




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    assembly level programing in C for os  
Harsimran


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-06-04 07: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.





[ Post a follow-up to this message ]



    Re: assembly level programing in C for os  
Juha Laiho


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-06-04 10: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)





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:19 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register