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

  • Thread starter Thread starter ngkamsengpeter
  • Start date Start date
  • Tags Tags
    Os Program
AI Thread Summary
Programming an operating system like Microsoft Windows or Linux involves a deep understanding of computer architecture, particularly Assembly language, alongside C++. While most sections of an OS can be developed in C++, critical components require Assembly. Familiarity with CPU manuals, such as the AMD or Intel System Programming Manual, is essential for those working with x86 architecture. Resources like the book "Operating Systems: Design and Implementation" can provide foundational knowledge, although opinions on its teaching methods may vary. A thorough comprehension of computer systems is crucial for effective OS design, making the process more manageable. The discussion highlights the complexity and depth of knowledge required in operating system development.
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".
 
Thread 'Star maps using Blender'
Blender just recently dropped a new version, 4.5(with 5.0 on the horizon), and within it was a new feature for which I immediately thought of a use for. The new feature was a .csv importer for Geometry nodes. Geometry nodes are a method of modelling that uses a node tree to create 3D models which offers more flexibility than straight modeling does. The .csv importer node allows you to bring in a .csv file and use the data in it to control aspects of your model. So for example, if you...
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...
Back
Top