Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Writing an operating system in C++ [closed]

Tags:

c++

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.

like image 683
dileepa Avatar asked Jan 27 '10 08:01

dileepa


People also ask

Why are all OS written in C?

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.

What is a closed operating system?

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.

Why are kernels written in C and not C++?

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.

Which OS is written in C language?

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.


1 Answers

Here's a ton of information that you'll eventually need, the dreaded OS programming FAQ.

like image 132
Kornel Kisielewicz Avatar answered Sep 18 '22 21:09

Kornel Kisielewicz