lets say that i want to write a operating system and i know what to do when i wrote it how will i compile that will i have to compile it with a normal compiler or is there another way?
lets say that i want to write a operating system and i know what to do when i wrote it how will i compile that will i have to compile it with a normal compiler or is there another way?
C++ Makes you Feel Better
"Gravity connot be held reponsible for people falling in love"--Albert Einstein
I don't know, but what is "teorical?"
uhm!
first
isn't that t-h-eor-et-ical question?
second
What exactly do you mean???
by:
"lets say that i want to write a operating system and i know what to do when i wrote it how will i compile that will i have to compile it with a normal compiler or is there another way?"
??????
He means that if he ever writes the code of a operation system what kind of a compiler he will use to compile it.
The answer is:
When you write one, you'll probably know.
First you have to write the assembly bootstrap loader (big words i know) it's basically assembly code that runs itself, once you have everthing set up (all hardware is registered, memory running well, access to hard drive, ram, etc.) then you can run regular programs (COM, EXE, etc.) from your operating system, i suggest compiling them with your normal compiler...that seems like it would work. And you obviously are not ready to write your own operating system becuase if you were you would have known that it wouldn't be written in C or C++ or C# or JAVA or BASIC or Fortran or Cobol or any other high level language of any kind.
PHP and XML
Let's talk about SAX
Actually, most modern OSes are a mix of (mostly) C and asm.