My Own OS

This is a discussion on My Own OS within the C++ Programming forums, part of the General Programming Boards category; I was just wondering if anyone could help me out I wanted to create my own simple OS just as ...

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    208

    My Own OS

    I was just wondering if anyone could help me out I wanted to create my own simple OS just as a hobbyist project and a learning experience. But I was wondering a few things I know I need to create the boot sector in asm but I want to makeeverything else in C++. So i was wondering if anyone knew how I could execute a .com file I make with c++ with my asm program that is in the boot sector. And after I create the boot sector where should I go from there thanx for any help

    Kas2002
    Jeff Paddon
    Undergraduate Research Assistant
    Physics Department
    St. Francis Xavier University

  2. #2
    noddingGeek
    Guest
    use C. see http://www.linux.org Thats all the os you need...

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    Linux?

    You might look into Linux. It's open source, so you can see how they've done it. Also, some of the disk utility companies like Power Quest have some info about how disks boot.

    It's not impossible for one person to write a simple OS. I know someone who wrote one for a mini-computer long before PCs, and of course Linus Torvalds did it!

    However, it IS IMPOSSIBLE for one person to write a good-modern GUI OS! Microsoft has something like 1000 programmers working for 3 years on each new version of Windows. It would take one programmer 3000 years! No one person has the knowledge or the time to accomplish a task like this. Then, you get the driver problem... Drivers are now written by the hardware manufacturers. They typically don't share the details you would need to write your own driver.

  4. #4
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    You should find more than enough info here: http://flashdaddee.com/forums/forumd...?s=&forumid=20

    Also, check out osdev.org

  5. #5
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    yeah ive heard windows 2000 was written in 5 million lines or
    something??!

  6. #6
    Registered User carrja99's Avatar
    Join Date
    Oct 2002
    Posts
    56

    Re: Linux?

    Originally posted by DougDbug
    You might look into Linux. It's open source, so you can see how they've done it. Also, some of the disk utility companies like Power Quest have some info about how disks boot.

    It's not impossible for one person to write a simple OS. I know someone who wrote one for a mini-computer long before PCs, and of course Linus Torvalds did it!

    However, it IS IMPOSSIBLE for one person to write a good-modern GUI OS! Microsoft has something like 1000 programmers working for 3 years on each new version of Windows. It would take one programmer 3000 years! No one person has the knowledge or the time to accomplish a task like this. Then, you get the driver problem... Drivers are now written by the hardware manufacturers. They typically don't share the details you would need to write your own driver.
    Yes, but do remember that Linus Torvalds created linux by himself to lern the inner workings of minix. Of course this was far from the grandeur of todays linux, and it had many bugs and was pretty worthless, but it was a beginning.

    I can sympathize with your attempt to develop your own OS as a hobby and to learn the inner workings of your PC. My best advice would to grab a LFS (Linux from scratch) distro and start from there. As you'll be FORCED to edit and recompile the kernel several times, you'll no doubt become familiar with it.

    Go check it out here .
    Last edited by carrja99; 02-10-2003 at 02:25 PM.

  7. #7
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    You may even want to consider working with some embedded systems. You can gain a grasp on doing some very low level programming without all the hassel that an operation system entails.

  8. #8
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    You could also consider to take a look at Minix. A small open source OS. Minix was developed to teach students how an OS works.

    http://www.cs.vu.nl/~ast/minix.html

  9. #9
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Originally posted by pode
    yeah ive heard windows 2000 was written in 5 million lines or
    something??!
    Supprised? I'm not....

  10. #10
    Registered User
    Join Date
    Jan 2002
    Posts
    387
    Go look at the source code to my s00per l337 Operating System
    http://www.SteveOS.tk
    Last edited by Okiesmokie; 02-10-2003 at 05:13 PM.
    "There are three kinds of people in the world...
    Those that can count and those that can't."

  11. #11
    CS Author and Instructor
    Join Date
    Sep 2002
    Posts
    511

    Wink

    If you take senior to grad level OS courses you will have to a least a simple one. I did!!!
    Mr. C: Author and Instructor

  12. #12
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    If you take senior to grad level OS courses you will have to a least a simple one.
    Interesting! I thought that it was a rather unusual exercise!

  13. #13
    CS Author and Instructor
    Join Date
    Sep 2002
    Posts
    511

    Thumbs up

    I had to write and OS called KASH and another one in grad school.
    Mr. C: Author and Instructor

  14. #14
    ! |-| /-\ +3 1337 Yawgmoth's Avatar
    Join Date
    Dec 2002
    Posts
    187
    What was the other one?
    L33t sp3@k sux0rz (uZ it t@k3s 10 m1|\|ut3s 2 tr@nzl@te 1 \/\/0rd & th3n j00 h@\/3 2 g3t p@$t d@ m1zpelli|\|gz, @tr0(i0u$ gr@mm@r @|\|d 1n(0/\/\pr3#3|\|$1bl3 $l@|\|g. 1t p\/\/33nz j00!!

    Speling is my faverit sujekt

    I am a signature virus. Add me to your signature so that I may multiply.

  15. #15
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Originally posted by pode
    yeah ive heard windows 2000 was written in 5 million lines or
    something??!
    there was a link posted with the exact amount somewhere on here, think it was more like 2 million.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Detecting if OS is Windows???
    By Ktulu in forum Windows Programming
    Replies: 2
    Last Post: 11-19-2006, 01:49 AM
  2. a simple OS
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 06-06-2004, 10:47 PM
  3. Linux OS to Windows OS code
    By sw9830 in forum C Programming
    Replies: 2
    Last Post: 02-28-2003, 02:11 PM
  4. How do they compile code for an OS ?
    By Nutshell in forum A Brief History of Cprogramming.com
    Replies: 49
    Last Post: 03-27-2002, 11:16 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21