Programming a Operating System

SoundTheSurrender

Diamond Member
Mar 13, 2005
3,126
0
0
Does anyone know where I can get a small operating system that I could compile and learn how it works?

I don't want to mess with something big.

I would be running it in a virtual machine setting.

Thanks
 

screw3d

Diamond Member
Nov 6, 2001
6,906
1
76
This reminds me of an OS class I had to take in college. Nachos anyone?

/shivers

All I can say is good luck and have fun!
 

3NF

Golden Member
Feb 5, 2005
1,345
0
0
Originally posted by: screw3d
This reminds me of an OS class I had to take in college. Nachos anyone?

/shivers

All I can say is good luck and have fun!

That's what it reminded me off :) I still have the Java code from that class.

 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
The problem is that any OS that's worth running will be big because of the drivers, the core itself it will be fairly small. From what I hear the NetBSD codebase is pretty easy to follow so that might be a good place to start.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,836
4,816
75
Originally posted by: screw3d
This reminds me of an OS class I had to take in college. Nachos anyone?

/shivers

All I can say is good luck and have fun!

/me pulls a book off a shelf: Operating Systems, A Modern Perspective, by Gary Nutt.
I know what you mean.

STS: What are you trying to get out of this? If you care about task scheduling, go with someone else's suggestion. If you just want to start with a small OS with a filesystem but without task scheduling, you might try FreeDOS.
 

engineereeyore

Platinum Member
Jul 23, 2005
2,070
0
0
If you want to see how an OS works on a smaller level, you can look up OS's for embedded systems, such as MicroC/OS 2. These operating systems work on a much smaller level and I believe MicroC is only about 2,000-3,000 lines of code, but it handles the basics pretty well, such as process creation/allocation, scheduling, context switching, ISR, and shared memory.
 

Reel

Diamond Member
Jul 14, 2001
4,484
0
76
Originally posted by: tfinch2
You can get an older Tanenbaum OS book with Minix for probably around $15-20 bucks.

I second that. Minix was created for that purpose but you might find something like one of the BSDs more motivating since it is a "real" OS.
 

mugs

Lifer
Apr 29, 2003
48,920
46
91
Originally posted by: Reel
Originally posted by: tfinch2
You can get an older Tanenbaum OS book with Minix for probably around $15-20 bucks.

I second that. Minix was created for that purpose but you might find something like one of the BSDs more motivating since it is a "real" OS.

Thirded Minix.
 

Thyme

Platinum Member
Nov 30, 2000
2,330
0
0
You might want to look into TinyOS. It's a real OS that runs on nodes for some wireless sensor networks.
 

tfinch2

Lifer
Feb 3, 2004
22,114
1
0
Originally posted by: mugs
Originally posted by: 3NF
Originally posted by: Evadman
Originally posted by: tfinch2
unban ^[a-zA-Z0-9]+$

Nice :D

Appropriate for this forum :)

Sucks for those with spaces or special characters in their usernames :(

:thumbsup: tfinch2

I was waiting for the day for someone to point that out... :p

OP, you can also look into Pintos. Stanford (I think?) has all of the documentation and OS course assignments online.