5 Replies - 8001 Views - Last Post: 08 December 2012 - 09:45 AM

#1 mgaines2  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 74
  • Joined: 06-December 12

Creating a Basic OS C++

Posted 06 December 2012 - 08:49 PM

Hey guys, I am a mid-level C++ programmer (still in High school but pretty good at it). I just got finished learning C++ GUIs and I am ready to take my programming to the next level. What are the basic requirements to creating a basic operating system? Like, what major pieces of code need to be in it to make it a virtual machine?
Is This A Good Question/Topic? 0
  • +

Replies To: Creating a Basic OS C++

#2 GunnerInc  Icon User is offline

  • "Hurry up and wait"
  • member icon




Reputation: 858
  • View blog
  • Posts: 2,281
  • Joined: 28-March 11

Re: Creating a Basic OS C++

Posted 06 December 2012 - 08:59 PM

*
POPULAR

The defacto place to go for information on creating your own OS, is http://wiki.osdev.or...anded_Main_Page this has everything you need in one place to get started. This is not something that can be covered in a few posts. You need to do your own research, download opens source OS's and look at the code to see how it is done.

Writing your own OS is not something for the faint of heart, it takes time, time, time, and dedication.

Not too sure if this is a good project to take your programming to the next level. You need to learn A LOT, and I mean A LOT of internals to get everything to work. It won't hurt to learn a bit of Assembly for the boot loader and other things.

2 words for your journey... GOOD LUCK...
Was This Post Helpful? 5
  • +
  • -

#3 mgaines2  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 74
  • Joined: 06-December 12

Re: Creating a Basic OS C++

Posted 07 December 2012 - 05:06 PM

What would be a better idea for taking my programming to the next level then... just wondering
Was This Post Helpful? 0
  • +
  • -

#4 BetaWar  Icon User is offline

  • #include "soul.h"
  • member icon

Reputation: 1148
  • View blog
  • Posts: 7,144
  • Joined: 07-September 06

Re: Creating a Basic OS C++

Posted 07 December 2012 - 05:12 PM

Well, I tried this once. I'll simply point you to this: http://www.dreaminco...c/107438-modos/ for more information on that.

Basically, if you are looking for something that will be good for you when it comes to programming, find something that interests you (though I strongly suggest getting used to socket and thread programming, as that will be quite common in most computer-related careers) and running with it. I have done a number of random projects for learning. Try creating a string class. Try making an IRC bot. Try making a web server. There are a TON of things you can make that will help you improve; but I don't believe an OS should be something you use as a learning exercise; it is far too hefty for that.

Hopefully that makes sense.
Was This Post Helpful? 0
  • +
  • -

#5 no2pencil  Icon User is offline

  • Toubabo Koomi
  • member icon

Reputation: 5304
  • View blog
  • Posts: 27,198
  • Joined: 10-May 07

Re: Creating a Basic OS C++

Posted 07 December 2012 - 05:47 PM

I always suggest to anyone that wants to write an os, to write a boot loader first. It's a great example of what you're getting yourself into.

What I don't understand is how many people think writing an entire OS is logical. There are only a major ones on the market, & yet someone that is self-described as mid-level can pull it off. Uh-yeah.
Was This Post Helpful? 0
  • +
  • -

#6 ishkabible  Icon User is offline

  • spelling expret
  • member icon




Reputation: 1622
  • View blog
  • Posts: 5,709
  • Joined: 03-August 09

Re: Creating a Basic OS C++

Posted 08 December 2012 - 09:45 AM

Ya; I've done stuff with boot loaders and basic kernel functionality but the whole thing is much harder.

I think if I were to get back into I would just try for a kernel that had a command line shell interface and allowed running Lua scripts. It would use a virtual file system too; I wouldn't go to the trouble of implementing a file system just yet. This would still require that I have allocation and deallocation which would be tough in and of itself; not to mention a whole C run-time library too.

This post has been edited by ishkabible: 08 December 2012 - 09:46 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1