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_zuumOVyZ39
9
u/nhatlonggunz Dec 13 '20
I see 2 os dev playlists, what is the difference?
12
u/AbsurdPoncho Dec 13 '20
The old playlist is based on BIOS bootloader techniques where the new one is based on UEFI. Also the new series is more polished
1
u/ptrsimon Dec 13 '20
remindme!
1
u/RemindMeBot Dec 13 '20
Defaulted to one day.
I will be messaging you on 2020-12-14 17:31:22 UTC to remind you of this link
CLICK THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
Info Custom Your Reminders Feedback
4
u/Daxsis Dec 13 '20
Please continue :) I want to follow your videos
5
u/AbsurdPoncho Dec 13 '20
Absolutely :) I have been posting weekly videos and plan to continue until I feel the series is at a good sufficient point
-7
u/Necessary_Kangaroo80 Dec 13 '20
Is there a YouTube channel or something for this?
8
Dec 13 '20
You've got to kidding me? Open the video on youtube. Open the creator's page. Check his playlists.
2
2
1
u/oryiesis Dec 13 '20
That looks like an awesome start. I'll have to dive into these whe nI get some time.
4
1
1
1
1
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/AbsurdPoncho Dec 13 '20
The newer one is best, the old one is based on old BIOS bootloader techniques and is not as polished
1
3
u/tacco85 Dec 14 '20
Only watched Part2. But you are overwriting your stack in the bootloader code. The line
Kernel->GetInfo(Kernel, &gEfiFileInfoGuid, &FileInfoSize, (void**)&FileInfo);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
1
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.
2
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