Results 1 to 3 of 3

Thread: Os

  1. #1

    Thread Starter
    Addicted Member NewGen's Avatar
    Join Date
    Nov 2002
    Location
    olathe, ks
    Posts
    152

    Os

    Is it possible to write an OS in C++. If so would it be stable?

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Lots of things are possible in C++. The stability isn't really dependent on the language, it's dependent on your code quality.

    I wouldn't write an OS in C++, it's far too fluffy, which is why most systems programming is still in C (C++ requires a lot of behind-the-scenes work, unfortunately without your OS or runtime support none of these can function).
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    So basically the absolute core of the OS (bootstrap and similar things) would be written in assembly. Based on that there would be a large layer of C that covers most of the basic functionality. If you have that you can write or port a C++ compiler compiler for the OS and write the remaining features in C++.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width