r/Operatingsystems • u/Diligent-Jury-1514 • Nov 09 '25
Which technical stack should I learn to develop an operating system?
Suggest me the best roadmap to build an operating system.
21
Upvotes
r/Operatingsystems • u/Diligent-Jury-1514 • Nov 09 '25
Suggest me the best roadmap to build an operating system.
6
u/Marelle01 Nov 09 '25
Getting a master degree in Computer Science might be a better idea.
Take a look at https://cs50.harvard.edu/x/zoom/#lectures it's a good beginning.
You'll find other free courses on Coursera and Edx.
Read Linus Torvalds biography.
Read Andrew Tanenbaum. (for other readers: it's not only a joke ;-)
Learn C and Rust, and study Linux code.
Find and study old MS Dos versions (2 to 4 are open source, if I remember well).
Familiarize yourself with all of this and you'll see if it's truly your passion. It's just the beginning Grasshopper ;-)
2
u/high_throughput Nov 09 '25
There's no stack. You're building the bottom piece.
3
u/sumsabumba Nov 09 '25
Electron
1
u/ExtraTNT Nov 10 '25
Think rust is the first language after c, that is solid enough… but i would like to see a os with most parts written in haskell… the dedication would be insane
1
u/frank-sarno Nov 10 '25
Check out https://wiki.osdev.org for a great resource, "Required Knowledge" is a good summary.
You probably want to start with a minimized CPU architecture (usually a virtual CPU) that you can monitor. Back in my day we used 8088s and Z80s but even these can be daunting if you're new.
It's been literal decades since I did any kernel development but note that it's paradoxically easier than you can imagine to start and also some of the most difficult things you may ever do as a software developer. I had immense fun writing my first scheduler and not so much fun figuring out why processes were starving, troubleshooting bizarre priority inversions, etc..
1
u/halbGefressen Nov 10 '25
The OS itself is the stack, so what do you mean?
1
u/gofl-zimbard-37 Nov 10 '25
I'd start with learning how to write clear and comprehensive requirements.
1
u/DepthMagician Nov 12 '25
C
1
u/OkSignificance5380 Nov 14 '25
Assembler and C
0
u/[deleted] Nov 09 '25
[deleted] — view deleted comment
7
u/[deleted] Nov 09 '25
[removed] — view removed comment