A C/C++ book will NOT show you how to write an operating system, and for a good reason: it's far beyond the scope of the book. Creating an operating system takes a whole team of skilled programmers just to create a simple kernel. Linux took years before a GUI was even released with it.
It's usually easier to start writing an operating system with some sort of core already prewritten to make it easier. Here's a website you might find useful:
http://www.powerdb.org/study/OS/os-faq.html
But I would say don't try something like this until you're confident you're capable of completing it. If you bite off more than you can chew, you'll usually end up getting frustrated and quit (I know from experience).
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
ok now how do i put tht stuff into a OS LOL?
You write the kernel. This is the base of your operating system, will be the largest part of your operating system, and will take the longest to write and be the most difficult to maintain.
Once you have written the kernel, you compile it into an image as described in the FAQ link I provided. This image can then be loaded, either manually or with a bootloader (GRUB/LILO) when the PC is booted.
Look, seriously, if you don't know how to program, why are you even worrying about how to write one? Learn C++ inside and out, THEN try to attempt it.[edit]
>Also can u find me a book on it at amazon or barnes and nobles Thank you
I don't know that much about writing operating systems, I just know that they're hard to write.
[/edit]
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
Of course if you are curious enough you could ask google your question and study the links it gives you. I found at least a half-dozen articles in just a few seconds.
Most universities officer course in operating systems. You might take one of those courses, but you will need to meed the prerequisits first.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
Also can u find me a book on it at amazon or barnes and nobles Thank you
You seem to be a newbie without any programming experience whatsoever. Go and learn to crawl before trying to run. But what the heck. Go and get burnt. Here is a good book with already written source code. But if you don't understand all the #defines don't come here asking. Get a good C/C++ book and learn them yourself.
WolfPack
Postaholic
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115
Ok does it have to be C and C++ or one or anthoer?
Doesn't matter. There are Operating systems written in both C or C++. You will have to learn assembly language also.
WolfPack
Postaholic
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115
Uhhh,
Do you think I can ern money for this and donate to the site and build something cool?
Maybe, maybe not. It depends if you can keep working at it, until you master programming and finish the project. It takes a lot of discipline, though.and also can you check barnes and nobles online a look for a good book for my to buy Cause I buy the wrong ones
The previously mentioned book is also available at Barnes and Noble .
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
This is getting ridiculous.
WolfPack
Postaholic
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115
Look. For the book I gave a link, you don't need asssembly at all. Only C or C++ will be enough. So just buy that book and follow it. This is the official site for that book and its operating system. You can download the sourcecode also from that site. What the book does is explain the design of the operating system. Before buying the book, try downloading the sourcecode and see if you can read through the cdoe without passing out. If you can, then buy the book. If you can't, learn C/C++ a bit further and then try writing an OS.
WolfPack
Postaholic
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115
You mean the 80 dollar one? Woah... Going to have to sell my wow account for that one and btw I dont understand ANY of it So I guess I am off to go get me a C++ book o_O
:mrgreen: :mrgreen: Told you so.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
Well I am going to get the 7 in 1 c++ for dummies book And read it then I will confim with you guys for the next step ok? We will all share the $$$
Bad book -- don't waste your time and $$ on it. Read this thread for lots of good advice
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343