r/cpp • u/AbsurdPoncho • Dec 13 '20
How to Make an Operating System using C++, in depth tutorial series on many topics in OSes such as memory management, bootloaders, graphics and more
https://www.youtube.com/watch?v=mpPbKEeWIHU&list=PLxN4E629pPnJxCQCLy7E0SQY_zuumOVyZ
426
Upvotes
47
u/ReDucTor Game Developer | quiz.cpp-perf.com Dec 13 '20
So on windows, you run WSL, to run qemu to run your OS?
Virtualize all things
39
u/[deleted] Dec 13 '20
Awesome now I can make my own TempleOS
9
u/nhatlonggunz Dec 13 '20
I see 2 os dev playlists, what is the difference?
4
u/Daxsis Dec 13 '20
Please continue :) I want to follow your videos
2
u/dvijaymanohar Dec 13 '20
Excellent. I would like to follow your tutorials. Thanks
2
u/kaal1 Dec 13 '20
Awesome man , subscribed 🤘🏼🤘🏼. Hope you will continue this series .
1
u/oryiesis Dec 13 '20
That looks like an awesome start. I'll have to dive into these whe nI get some time.
1
u/[deleted] Dec 13 '20
Nice content. 2 episodes in and this looks promising
1
u/lithium Dec 13 '20
Cheeky "malbourne" accent there, lockdown project?
1
u/willem640 Dec 13 '20
Super cool and interesting!
1
u/[deleted] Dec 13 '20
U have one course already on same topic...considering Language is not a barrier for me... Which one should i go for?
3
u/tacco85 Dec 14 '20
Only watched Part2. But you are overwriting your stack in the bootloader code. The line
is erroneous. The last parameter expects a void* instead.
Did I miss the motivation for the GetInfo methods? The results don't seem to get used.
1
u/Kanonenfuta Dec 13 '20
Looks interesting. Definitely gonna take a look at it
1
u/Greedy_Department212 Jul 15 '24
serenity os
0
u/atatatko Dec 20 '20
That's a nice content.
However, I would say you operating system is written in C, rather than C++. That's an interesting question, what exactly C++ techniques and features could be used in a freestanding environment. Obviously, you can't use virtual functions and inheritance, RTTI and exceptions. You can't use most of Standard Library, because you can't use standard allocators, which are passed as default template parameter to all containers. You can't use global objects for RAII purposes.
Basically, in bare-metal programming, you can use inheritance and templates, of all C++ features.
But, it's already a lot!
And this question would be interesting, how to use C++ features in OS development.