Closed Thread
Results 1 to 10 of 10

Thread: Creating an OS

  1. #1
    NeedHelp Guest

    Creating an OS

    What consists of creating an OS in C++? What needs to be done to allow the computer to boot to your OS and what can you make it in? For instance, can you make it with Visual C++ 2005? Just curious on what needs to happen.

  2. CODECALL Circuit advertisement

     
  3. #2
    TkTech's Avatar
    TkTech is offline The Crazy One
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    1,412
    Blog Entries
    1
    Rep Power
    31
    you probably could, but i highly suggest NOT using Visual C++. By defualt it has way to many dependencies. For making your own os, check osdever.net and http://www.mega-tokyo.com/forum/ ( near the bottom ). These are resources ive used to build my hobby os. Also, make sure you know assembler, and id recomend you use C to make your first os.

  4. #3
    Void's Avatar
    Void is offline Programming Expert
    Join Date
    Jun 2006
    Posts
    410
    Rep Power
    23
    TkTech, where is your hobby OS at? I'd love to see it!
    Void

  5. #4
    TkTech's Avatar
    TkTech is offline The Crazy One
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    1,412
    Blog Entries
    1
    Rep Power
    31
    the older one is at tktech.org/orion.php . I havent updated the site yet.

  6. #5
    Void's Avatar
    Void is offline Programming Expert
    Join Date
    Jun 2006
    Posts
    410
    Rep Power
    23
    Quote Originally Posted by TkTech
    you probably could, but i highly suggest NOT using Visual C++. By defualt it has way to many dependencies. For making your own os, check osdever.net and http://www.mega-tokyo.com/forum/ ( near the bottom ). These are resources ive used to build my hobby os. Also, make sure you know assembler, and id recomend you use C to make your first os.
    Building an OS as a hobby sounds like a lot of fun. How did you get into building OSes? How often to you work on it?
    Void

  7. #6
    Kaabi Guest
    My friend once made an OS, it was a long time ago and he never told me what language he used to make it (I guess it must have been C++). It was so weird, but that's probably just because I'm so accustomed to Windows.

  8. #7
    Join Date
    Oct 2007
    Location
    /dev/null
    Posts
    4,513
    Blog Entries
    8
    Rep Power
    59
    I'd definitely recommend using assembler for a small-scale OS. Try making small generic component functions and programs, then build upwards from there. Not only is everything modularized so that bugs will be easier to find, but it will also be easier to modify and/or update. Assembler gives the advantage of being small and fast, and if you write your own routines you won't get a lot of the garbage dependancies that C and C++ have.

  9. #8
    NeedHelp Guest
    Sounds a bit complicated writing in assembly though. I have no idea how to use it.

  10. #9
    Join Date
    Oct 2007
    Location
    /dev/null
    Posts
    4,513
    Blog Entries
    8
    Rep Power
    59
    Writing programs in assembler can be frustrating for large-scale applications, but if you break things up like I said, it shouldn't be impossible. If performance or size is your concern, then use assembler. DO NOT use C++. C++ has way too many libraries that it requires, too many dependencies, and MFC is terrible. Use C if you want to make a powerful OS without too much of a headache.

    If assembler is your choice, there are some great tutorials lying around on the Internet; Google is great. Here are some good ones; I suggest you go in order. The last one is the best, but you might want to at least look over the first two to get your feet wet.

    Tutorial for Assembler Programming Newbies
    A Brief x86 Assembler Tutorial
    The Art of Assembly Language Programming
    Last edited by dargueta; 10-09-2007 at 06:46 PM.

  11. #10
    v0id is offline Retired
    Join Date
    Apr 2007
    Posts
    2,937
    Blog Entries
    3
    Rep Power
    42
    I would also choose to write an OS in Assembly, but not the entire OS. I would create the bootloader in Assembly, and all the other low-level stuff, and then switch to x86-mode, and use C. C is nowadays almost as fast as Assembly. The compilers are getting really good, and if you don't think they aren't good enough, you can always use optimizers and profilers.

    I once wrote a bootloader, but if I had continued building on an OS, I would had continued with C - but probably some Assembly also.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Which of the way of creating GUI is better ?
    By xxxxjayxxx in forum Java Help
    Replies: 4
    Last Post: 04-25-2011, 04:34 AM
  2. Creating a bmp
    By eafkuor in forum Java Help
    Replies: 0
    Last Post: 12-11-2010, 10:15 AM
  3. Creating GUI
    By Roman Y in forum Java Help
    Replies: 4
    Last Post: 09-07-2010, 06:08 PM
  4. Creating a JAR
    By domestic in forum Java Help
    Replies: 3
    Last Post: 03-29-2007, 09:47 AM
  5. Creating a DLL
    By Nightracer in forum C# Programming
    Replies: 8
    Last Post: 09-16-2006, 03:03 AM

Tags for this Thread

Bookmarks

Posting Permissions

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