February 22, 2012

Ever Feel Like Building Your Own Operating System?

If you have grown frustrated with how Windows and Mac make everybody do things “their” way, and you just do not think that Linux is good enough at being customized for your needs, you could always try the extremely difficult, time consuming task of programming your very own operating system. While it could literally take you years of dedicated development work before you have anything that is genuinely usable, you can still accomplish a lot in the end. Who knows? Your operating system might have a few components that you could make proprietary, and either lease out or sell to another OS developer for a tidy profit down the road. After all, this might turn out to not just be a hobby, once you have it all worked out.

One problem you are going to face when you develop your own operating system is which programming language do you use? Do not use anything fancy, such as C++. While it would provide a nice interface, it will also not work because it requires certain functions (such as the running of some of its keywords) which in turn require a fully functional operating system. That would be like expecting a bird to roost in a cloud — pretty unlikely. One of the best languages to employ is C, but Assembly will also work very well.

You might also want to make use of a virtual machine. After all, you do not want to either have to transfer an endless number of files from your main computer to your testing computer. And you probably also do not want to have to restart your computer every time you want to save (and ultimately test the functionality of) a recent change you made to your OS. While there are several options available to you when it comes to creating an operating system, one of the best virtual machines is an open source program which is known as Bochs.