Programming a OS & BIOS in C++

  • Thread starter ngkamsengpeter
  • Start date
  • Tags
    Os Program
In summary, the conversation discusses the process of programming an operating system, including the use of C++ and assembly language. It is important to have a thorough understanding of computer architecture and to study OS design concepts. The book "Operating Systems: Design and Implementation" is recommended, but the speaker has a different approach to teaching OS design. The idea of running multiple programs on one machine is also mentioned as a key role of an operating system.
  • #1
ngkamsengpeter
195
0
I wondered how to program a operating system such as microsoft windows, linux , can anyone tell me ? Is it you can program a OS using C++ ?
Another is how to program bios ? Also using c++ ?
 
Technology news on Phys.org
  • #2
Perhaps you can look at the source code of something like Debian.
 
  • #3
To answer your question is not simple. You should comprehend the Assembly language of your architecture extremely well. You can program most sections of an OS in C++, while the others require Assembly. Read the manual of your CPU. If you are writing an OS for the x86 arch, you can either implement the AMD or Intel System Programming Manual.

The famous book on OS Design is "Operating Systems: Design and Implementation." I personally am not fond of this book. I disagree with the method of teaching OS design.

In order to program an OS, one is in great need of complete comprehension of one's computer. Then you can study the concepts of OS design; programming an OS shall become simple after that knowledge has been obtained.
 
  • #4
Excellent answer arevolutionist!
 
  • #5
nithin said:
Excellent answer arevolutionist!

Thank you. Operating System design is my favorite subject within computer science.
 
  • #6
"And then somebody came up with the great idea to run two programs on the same machine at the same time ... but to do that you need an operating system".
 

What is an operating system?

An operating system (OS) is a software that manages the hardware and software resources of a computer and provides common services for computer programs. It is the most essential software that runs on a computer and allows other applications to run.

What is BIOS?

BIOS stands for Basic Input/Output System. It is a firmware built into the computer's motherboard that initializes and controls the hardware components during the boot-up process. BIOS is responsible for loading the operating system into the computer's memory.

Why is C++ used for programming OS and BIOS?

C++ is a high-level, general-purpose programming language that offers a good balance between performance and flexibility. It allows low-level hardware operations to be performed, making it suitable for programming an OS and BIOS. C++ also offers features like memory management and object-oriented programming that make it easier to handle complex tasks involved in OS and BIOS programming.

What are the challenges in programming an OS and BIOS in C++?

Programming an OS and BIOS in C++ is a complex task that requires a deep understanding of computer hardware and low-level programming. It also involves dealing with various hardware components and their interactions, making it challenging to ensure compatibility and stability. Additionally, the code needs to be highly optimized for efficient performance, which requires advanced programming skills.

Can an OS and BIOS be written entirely in C++?

Yes, an OS and BIOS can be written entirely in C++. However, some hardware-specific functions may require assembly language programming, which is often used in combination with C++. Additionally, some operating systems may use a combination of languages like C, C++, and Assembly to achieve the desired functionality and performance.

Similar threads

  • Programming and Computer Science
Replies
4
Views
294
  • Programming and Computer Science
Replies
1
Views
327
  • Programming and Computer Science
Replies
17
Views
1K
Replies
3
Views
228
  • Programming and Computer Science
Replies
1
Views
820
  • Programming and Computer Science
Replies
6
Views
1K
  • Programming and Computer Science
Replies
11
Views
3K
  • Programming and Computer Science
Replies
7
Views
338
  • Programming and Computer Science
Replies
5
Views
313
  • Programming and Computer Science
Replies
13
Views
2K
Back
Top