Computing.Net > Forums > Programming > Write An OS

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Write An OS

Reply to Message Icon

Original Message
Name: Chad Johnson (by ChadJohnson)
Date: September 23, 2004 at 07:28:23 Pacific
Subject: Write An OS
OS: n/a
CPU/Ram: n/a
Comment:

I'm taking a course on operating system concepts, and I've found it very interesting.

Most of the examples that we've looked at have been in C. Can you actually write one in C? It would be too hard to write one in assembly...

Are there any good tutorials for this, like how to make the first program that runs on the computer upon bootup and how to interface with the hardware, etc.?


Report Offensive Message For Removal


Response Number 1
Name: Infinite Recursion
Date: September 23, 2004 at 13:55:46 Pacific
Reply: (edit)

Yes, you can write an entire OS in C/C++ with a few embedded blocks of Assembly.

Google has tons of links regarding this.. for instance, here is one:

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=4513&lngWId=3


Report Offensive Follow Up For Removal

Response Number 2
Name: Chad Johnson (by ChadJohnson)
Date: September 23, 2004 at 15:00:01 Pacific
Reply: (edit)

sweet - that's awesome


Report Offensive Follow Up For Removal

Response Number 3
Name: Dr. Nick
Date: September 23, 2004 at 15:33:01 Pacific
Reply: (edit)

I'm no expert on the subject, in fact I'll be taking an Operating Systems course next year, but from reading the class description it looks like we do actually use C/C++ to write an entire (if small an very non-functional) OS. We write the bootstrap loader and eventually give the user a prompt which will allow them to execute very simple commands.

Looks very cool (and probably fairly difficult, but that's half the fun). I shall decalare it NickOS and give Microsoft a run for their money :)


Report Offensive Follow Up For Removal

Response Number 4
Name: Infinite Recursion
Date: September 24, 2004 at 06:03:37 Pacific
Reply: (edit)

The drawback is, MS has thousands of employees that contribute to their OS. Tens of Thousands of man hours invested in it.

I too want to write my own OS, but for now I think I will settle for working on my own programming language.

C++ and Assembly would be your best bet for your OS development.


Report Offensive Follow Up For Removal

Response Number 5
Name: BlueRaja
Date: September 24, 2004 at 15:36:26 Pacific
Reply: (edit)

Yes, you can write an entire operating system in C; C was originally developed for writing OS code (for a little-known OS named UNIX ^_^)

If you want to write an OS, your best option would be to take a look at the Linix code (mostly C), and edit it where appropriate.

btw, MS doesn't have thousands of programmers working on Windows, it's probably more around the vicinity of a few dozen, if that..

AKhalifman@hotmail.com


Report Offensive Follow Up For Removal


Response Number 6
Name: gimmpy224
Date: September 24, 2004 at 19:48:27 Pacific
Reply: (edit)

? id settle for around a hundred or so

GIMPS


Report Offensive Follow Up For Removal

Response Number 7
Name: Infinite Recursion
Date: September 26, 2004 at 20:18:44 Pacific
Reply: (edit)

I guess I'll have to put in a query or so to microsoft to know for sure.

Bottom line is, its more than 1.


Report Offensive Follow Up For Removal






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software