General way to start writing OS

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
fiberMan
Posts: 1
Joined: Wed Apr 27, 2011 5:14 am

General way to start writing OS

Post by fiberMan »

Hello,
I'd like to know step by step , the easy way to succeed in OS programming ( just the method) Thank you)
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: General way to start writing OS

Post by Combuster »

Since you asked for the easy answers:

In getting an OS to work: have infinite motivation and an IQ of over 150.
In getting an OS on the market: forget it.

If you want an answer with more nuance, read Beginner Mistakes and Getting Started
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
xenos
Member
Member
Posts: 1121
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

Re: General way to start writing OS

Post by xenos »

Start by learning the programming language of your choice - not just by reading a book, you really need to know what you are doing.
http://abstrusegoose.com/249

Once you know about the language of your choice, choose a hardware platform, learn how it works and start programming it to really learn how it works.

Finally, design your OS.
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
homicidal
Posts: 1
Joined: Sat Mar 26, 2011 12:28 am

Re: General way to start writing OS

Post by homicidal »

I just waded in and started writing a kernel in a way that would give me some form of return as soon as possible. eg I wrote a rudimentary print function and then moved on to keyboard input after that. It may not be the best way to go about it but this way I can see something happening which helps to keep me focused.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: General way to start writing OS

Post by Solar »

One line: If you have to ask, don't. :twisted:

No easy way, sorry. In OS development, your choice is limited to "very hard" and "unrealistic".
Every good solution is obvious once you've found it.
User avatar
lemonyii
Member
Member
Posts: 153
Joined: Thu Mar 25, 2010 11:28 pm
Location: China

Re: General way to start writing OS

Post by lemonyii »

get a sense about everyting in the wiki: http://wiki.osdev.org/Main_Page
and you'll know how to get started. that won't take more than 3 days if you are smart enough and have no job.
they are afraid of your getting started 8)
Enjoy my life!------A fish with a tattooed retina
Post Reply