Jump to content

Operating System Structure

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
brade8000

brade8000

    Newbie

  • Members
  • PipPip
  • 21 posts
Greetings everyone,
I am planning on making a Operating System so I will be asking a few questions.
As my first question I would like to know the structure of an operating system.
I am using C++ express 2010 beta 2 and any code snippets would be great.
Thanks.^^

#2
Sysop_fb

Sysop_fb

    Programmer

  • Members
  • PipPipPipPip
  • 160 posts
The structure of what? The overall concept of an O/S? That topic can take an entire book to answer.

Taking the example of most beginner O/Ss you have the bootloader, then it jumps to your kernel code (taking into account the multiple types of kernels), then the user interface or the shell.
The O/S can be written in whatever way best suits your needs or what you hope to accomplish. I would start with trying to write a basic bootloader in assembly and actually understanding what's going on. Something else to consider is that you won't have the standard library to rely on so you could write your own.
"The best optimizer is between your ears" - Michael Abrash
Saying you can optimize a program is like saying you understand how a program works on every level of every facet on a specific machines configuration.

#3
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,717 posts

Quote

I am using C++ express 2010 beta 2 and any code snippets would be great.
That'll be a joyride. You do realize you won't be able to use any STL, memory management (i.e. no new, malloc, delete, etc.), standard libraries, and all that? I recommend this website: OSDev.org.

Writing an operating system is a huge project. Don't expect to be making Windows by yourself. Perhaps a rudimentary DOS. As someone who's worked in OS development, I strongly suggest you do a lot of reading before writing a single line of code.

Edited by dargueta, 10 March 2010 - 02:51 AM.

sudo rm -rf /

#4
brade8000

brade8000

    Newbie

  • Members
  • PipPip
  • 21 posts
Hey,
Where can I read up on operating systems and get tips from.

#5
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,717 posts
See the link I provided above - http://wiki.osdev.org
sudo rm -rf /

#6
hetra

hetra

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 297 posts
It is simple enough to the degree i'm talking (it would take alot more than a book to go any further).

Applications

I/O Management

Device Drivers

Memory Management

CU Management

Hardware

There you have it.

#7
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,717 posts
Trust me, I know from experience. It's not that simple. You code a bootloader on your own and see how long it takes.
sudo rm -rf /