Thread: teorical question

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    106

    teorical question

    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

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    200
    I don't know, but what is "teorical?"

  3. #3
    Banned borko_b's Avatar
    Join Date
    Jun 2002
    Location
    Well... I live in Bulgaria :)
    Posts
    100
    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?"
    ??????

  4. #4
    Registered User
    Join Date
    May 2002
    Posts
    21
    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.

  5. #5
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001

    actual answer

    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

  6. #6
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    Actually, most modern OSes are a mix of (mostly) C and asm.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  2. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  3. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  4. Question about linked lists.
    By cheeisme123 in forum C++ Programming
    Replies: 6
    Last Post: 02-25-2003, 01:36 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM