Page 1 of 1
C vc C++
Posted: Sat Feb 28, 2004 5:43 am
by guest
Hello,
I want to know what will make me write my OS in C or in C++
why some people use C and others C++ ?
By the way, in the both languages we will use ASM.
Re:C vc C++
Posted: Sat Feb 28, 2004 6:22 am
by sfdgb
you write it in html
Re:C vc C++
Posted: Sat Feb 28, 2004 6:53 am
by Pype.Clicker
sfdgb wrote:
you write it in html
oh! what a smart answer ...
Picking either C or C++ is merely a matter of taste, personnal experience, and how "fluent" you're in the language you pick ...
Re:C vc C++
Posted: Sat Feb 28, 2004 7:07 am
by Schol-R-LEA
RTFAQ, please.
What language you use is purely a matter of personal preference, provided that language you choose is suitable for low-level programming (that is, it isn't specific to an existing OS, and it requires little if any runtime support from a library or interpreter). C is the most commonly used language mainly because it is familiar to most OS developers, and there is a large body of literature available about OS development in it. C++ requires more runtime support, but certainly can be used.
Of course, as you pointed out yourself, no matter what languages you write parts of the OS in there are some parts which must be written in assembly. It is always possible to write the whole OS in assembly, but most programmers don't have the patience and skill to manage that. If you think you can manage it, however, you should feel free to try if you wish.
You may wish to consult the 'Language Design' threads in the
General Programming message board. HTH.
Re:C vc C++
Posted: Sat Feb 28, 2004 3:01 pm
by guest
Thank you very much Schol-R-LEA and you Pype.Clicker but no thanks to sfdgb for his smart answer.
Re:C vc C++
Posted: Sat Feb 28, 2004 11:59 pm
by fxyj
ungreatful guests ..
Re:C vc C++
Posted: Sun Feb 29, 2004 12:51 am
by AGI1122
Of course he isn't going to be greatfull, you didn't help out one bit.