Page 1 of 1
C vs C++
Posted: Mon Feb 23, 2004 10:17 am
by guest
Hello,
What makes me write my OS in C or write it in C++ ?
Can i write it with out using ASM ?
Re:C vs C++
Posted: Mon Feb 23, 2004 12:24 pm
by Solar
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
Re:C vs C++
Posted: Tue Feb 24, 2004 12:13 am
by kseujb
rubbish!!
Re:C vs C++
Posted: Tue Feb 24, 2004 1:15 am
by Solar
Oh, thanks for the detailed, constructive and informative criticism on my post!
Would you care to elaborate what you think is "rubbish"?