Hello,
What makes me write my OS in C or write it in C++ ?
Can i write it with out using ASM ?
C vs C++
Re:C vs C++
Not that this hasn't been answered many times over...
C++ requires some runtime support if you want to use any one of:
* exception support,
* Run-Time Type Information (RTTI),
* global / static objects.
It also isn't the "default" OS development language (that's C), and so you will find most tutorials using C code.
On the upside, you get namespaces, templates, classes, ...
And no, you cannot write your OS without ASM, but if you take care you will need very little of it.
http://www.osdev.org/osfaq2
C++ requires some runtime support if you want to use any one of:
* exception support,
* Run-Time Type Information (RTTI),
* global / static objects.
It also isn't the "default" OS development language (that's C), and so you will find most tutorials using C code.
On the upside, you get namespaces, templates, classes, ...
And no, you cannot write your OS without ASM, but if you take care you will need very little of it.
http://www.osdev.org/osfaq2
Every good solution is obvious once you've found it.
Re:C vs C++
Oh, thanks for the detailed, constructive and informative criticism on my post!
Would you care to elaborate what you think is "rubbish"?
Would you care to elaborate what you think is "rubbish"?
Every good solution is obvious once you've found it.