what is a way to create a my own operating system using c++. I have been created boot loader (using nasm,qemu) but I haven't knowledge to add an kernel to this boot loader.
The vast majority of operating systems are written in C because C has a relatively simple run-time (it doesn't require complex libraries just to meet the results of compiling the language), it can manage memory fairly explicitly, and it can do fairly arbitrary pointer and type casting.
Closed-source operating systems use code that is proprietary and kept secret to prevent its use by other entities. Traditionally, they are sold for a profit. Open-source operating systems use code that is freely-distributed and available to anyone to use, even for commercial purposes.
that's because nearly every c++ app needs a separate c++ standard library to operate. so they would have to port it to kernel, and expect an extra overhead everywhere.
Operating Systems Unix-Kernel, Microsoft Windows utilities and operating system applications, and a big segment of Android operating system have all been written in C language.
Here's a ton of information that you'll eventually need, the dreaded OS programming FAQ.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With