| | |
Writing an Operating System
Thread Solved
![]() |
I have this idea that I want to write an operating system. I've started to learn C++, but I have a few questions...One is, obviously, am I using the right programming language? I have looked at a few forums on this site, and it seems to be half of the people saying that C++ is good for OS writing, and the other half saying that it's bad. (if whoever answers that question could give a reason, that would be nice) If C++ isn't a good programming language for this project, then what is?
The next question I have is where to start. Clearly, I have to become an expert at programming in whatever language I need first, but then where do I go? I kind of know what a kernel is, but if someone could explain more, that would be nice.
I'll probably come up with more questions later, but that's it for now.
The next question I have is where to start. Clearly, I have to become an expert at programming in whatever language I need first, but then where do I go? I kind of know what a kernel is, but if someone could explain more, that would be nice.
I'll probably come up with more questions later, but that's it for now.
C is probably a better language than C++. Lots of operating systems have been written using C.
>>The next question I have is where to start.
Here are some google links you should read
>>The next question I have is where to start.
Here are some google links you should read
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
I'm not saying you can't do it in c++, but it will bring a lot of baggage (such as stl classes) that you may not want or need. C will be tighter code, smaller code, and often faster code.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
You can use minix and modify source code here and there , you will never be able to write a new OS code yourself.
depends. If the file system is going to be all new then you will have to write a cross compiler first that will target the file system.
If you plan to use one of the existing file systems such as that used in *nix or MS-Windows then you can use one of the existing compilers.
I have not written an os, but I would imagine parts of it may need to be in assembly because there are some assembly instructions that have no c counterpart.
If you plan to use one of the existing file systems such as that used in *nix or MS-Windows then you can use one of the existing compilers.
I have not written an os, but I would imagine parts of it may need to be in assembly because there are some assembly instructions that have no c counterpart.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Both C and C++ provide for (implementation defined) asm declaration (builtin assembler code) so the formal answer is "Yes, you might do that". Can you - that's a question.
It is better to bootstrap a new system from the scratch in C because the C runtime support is much more simpler than for C++ one (for example, imagine proper stack unwind after C++ exception code). That's why sometimes C called a very high level assembler...
It is better to bootstrap a new system from the scratch in C because the C runtime support is much more simpler than for C++ one (for example, imagine proper stack unwind after C++ exception code). That's why sometimes C called a very high level assembler...
![]() |
Similar Threads
- designing an operating system (Computer Science)
- writing a a program in machine code (Assembly)
- Writing to an Access Database (Visual Basic 4 / 5 / 6)
- Creating an Operating System like DOS (C)
- Operating System in Python (Python)
- Is assembly worth learning it? (Assembly)
- Creating an OS (C++)
- 32 BIt Flat Real mode (C)
- C++ is dying a slow death (C++)
Other Threads in the C++ Forum
- Previous Thread: SetUnhandledExceptionFilter problem
- Next Thread: C++ Program have one error :)
| Thread Tools | Search this Thread |
action api array auto based beginner binary bitmap c++ c/c++ calculator challenge char class classes code coding compile console conversion count createcopyofanyfileinc delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game garbage givemetehcodez graph gui hmenu homeworkhelp homeworkhelper iamthwee ifstream input insert int integer java lib linkedlist linker loop looping loops map math matrix memory multiple news node noob output parameter pointer primenumbersinrange problem program programming project python random read recursion reference rpg sockets string strings temperature template test text text-file tree url variable vector video win32 windows winsock wordfrequency wxwidgets






