Can You Program an OS and BIOS Using C++?

  • Context: C/C++ 
  • Thread starter Thread starter ngkamsengpeter
  • Start date Start date
  • Tags Tags
    Os Program
Click For Summary

Discussion Overview

The discussion revolves around the feasibility and methodology of programming an operating system (OS) and BIOS using C++. Participants explore the necessary knowledge and skills required for such tasks, including the role of Assembly language and the importance of understanding computer architecture.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested

Main Points Raised

  • One participant questions whether it is possible to program an OS and BIOS using C++.
  • Another suggests examining the source code of existing systems like Debian for insights.
  • A participant emphasizes the complexity of the task, stating that a strong understanding of Assembly language is essential alongside C++ for OS development.
  • It is noted that while many sections of an OS can be programmed in C++, some parts will require Assembly language, particularly for specific architectures like x86.
  • A reference is made to the AMD or Intel System Programming Manual as a resource for those writing an OS for x86 architecture.
  • One participant expresses a personal dislike for a well-known book on OS design, indicating a divergence in educational preferences.
  • Another participant highlights the necessity of a comprehensive understanding of one's computer to simplify the process of OS programming.
  • A humorous remark is made about the historical development of operating systems, referencing the need for multitasking capabilities.

Areas of Agreement / Disagreement

Participants express varying opinions on the resources and knowledge required for programming an OS, with some agreeing on the importance of Assembly language, while others have differing views on educational materials. The discussion remains unresolved regarding the specific methodologies and tools for OS and BIOS programming.

Contextual Notes

Participants mention the need for a deep understanding of computer architecture and the potential limitations of certain educational resources. There is an acknowledgment of the complexity involved in OS design without resolving specific methodologies.

ngkamsengpeter
Messages
193
Reaction score
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
Perhaps you can look at the source code of something like Debian.
 
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.
 
Excellent answer arevolutionist!
 
nithin said:
Excellent answer arevolutionist!

Thank you. Operating System design is my favorite subject within computer science.
 
"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".
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 1 ·
Replies
1
Views
6K
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
86
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K